mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #30057 -- Fixed diffsettings ignoring custom configured settings.
Regression in 49b679371f
.
This commit is contained in:
parent
abf8e390a4
commit
573f44d62f
3 changed files with 4 additions and 4 deletions
|
@ -5,5 +5,5 @@ from django.conf import settings
|
|||
from django.core.management import execute_from_command_line
|
||||
|
||||
if __name__ == '__main__':
|
||||
settings.configure(DEBUG=True)
|
||||
settings.configure(DEBUG=True, CUSTOM=1)
|
||||
execute_from_command_line(sys.argv)
|
||||
|
|
|
@ -2236,7 +2236,7 @@ class DiffSettings(AdminScriptTestCase):
|
|||
def test_settings_configured(self):
|
||||
out, err = self.run_manage(['diffsettings'], configured_settings=True)
|
||||
self.assertNoOutput(err)
|
||||
self.assertOutput(out, 'DEBUG = True')
|
||||
self.assertOutput(out, 'CUSTOM = 1 ###\nDEBUG = True')
|
||||
|
||||
def test_all(self):
|
||||
"""The all option also shows settings with the default value."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue