diff options
author | Tim Graham <timograham@gmail.com> | 2015-09-07 09:28:15 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-09-07 15:23:11 -0400 |
commit | 862de0b254bbb0ec75d637c7fbff258ecf232786 (patch) | |
tree | ddf3995ad0bfacbb19b193f06e25a98b5ac780fb /tests/admin_scripts/tests.py | |
parent | 29d52583e77b247aceeb2f514177a8a6c21ed786 (diff) | |
download | django-862de0b254bbb0ec75d637c7fbff258ecf232786.tar.gz |
Fixed #25356 -- Removed default_app_config from startapp template.
Also discouraged its use outside the intended use case.
Diffstat (limited to 'tests/admin_scripts/tests.py')
-rw-r--r-- | tests/admin_scripts/tests.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index f81f6dda38..174cfe687f 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -599,10 +599,6 @@ class DjangoAdminSettingsDirectory(AdminScriptTestCase): content = f.read() self.assertIn("class SettingsTestConfig(AppConfig)", content) self.assertIn("name = 'settings_test'", content) - with open(os.path.join(app_path, '__init__.py'), 'r') as f: - content = f.read() - expected_content = "default_app_config = 'settings_test.apps.SettingsTestConfig'" - self.assertIn(expected_content, content) if not PY3: with open(os.path.join(app_path, 'models.py'), 'r') as fp: content = fp.read() |