Fixed test cases that generate their own settings file.
Now they include SECRET_KEY. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17615 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
df1e505d9f
commit
fe7ccdc5be
|
@ -34,7 +34,8 @@ class AdminScriptTestCase(unittest.TestCase):
|
||||||
settings_file.write('# Settings file automatically generated by regressiontests.admin_scripts test case\n')
|
settings_file.write('# Settings file automatically generated by regressiontests.admin_scripts test case\n')
|
||||||
exports = [
|
exports = [
|
||||||
'DATABASES',
|
'DATABASES',
|
||||||
'ROOT_URLCONF'
|
'ROOT_URLCONF',
|
||||||
|
'SECRET_KEY',
|
||||||
]
|
]
|
||||||
for s in exports:
|
for s in exports:
|
||||||
if hasattr(settings, s):
|
if hasattr(settings, s):
|
||||||
|
|
Loading…
Reference in New Issue