mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Prevented staticfiles test from colliding when run in parallel.
This requires that each test never alters files in static directories collected by other tests. The alternative is to add a temporary directory to STATICFILES_DIRS or a new app to INSTALLED_APPS.
This commit is contained in:
parent
326bc0955b
commit
bf2c969eb7
3 changed files with 56 additions and 45 deletions
|
@ -6,8 +6,6 @@ from django.utils._os import upath
|
|||
|
||||
TEST_ROOT = os.path.dirname(upath(__file__))
|
||||
|
||||
TESTFILES_PATH = os.path.join(TEST_ROOT, 'apps', 'test', 'static', 'test')
|
||||
|
||||
TEST_SETTINGS = {
|
||||
'DEBUG': True,
|
||||
'MEDIA_URL': '/media/',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue