mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
@@ -133,7 +133,7 @@ class AdminScriptTestCase(unittest.TestCase):
|
|||||||
|
|
||||||
# Set the test environment
|
# Set the test environment
|
||||||
if settings_file:
|
if settings_file:
|
||||||
test_environ['DJANGO_SETTINGS_MODULE'] = settings_file
|
test_environ['DJANGO_SETTINGS_MODULE'] = str(settings_file)
|
||||||
elif 'DJANGO_SETTINGS_MODULE' in test_environ:
|
elif 'DJANGO_SETTINGS_MODULE' in test_environ:
|
||||||
del test_environ['DJANGO_SETTINGS_MODULE']
|
del test_environ['DJANGO_SETTINGS_MODULE']
|
||||||
python_path = [base_dir, django_dir, tests_dir]
|
python_path = [base_dir, django_dir, tests_dir]
|
||||||
|
|||||||
Reference in New Issue
Block a user