1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

add requires_settings attribute

This commit is contained in:
Ben Cail
2024-09-25 15:47:35 -04:00
parent eee0557112
commit 894b227d29
6 changed files with 19 additions and 10 deletions

View File

@@ -1223,7 +1223,9 @@ class ManageAlternateSettings(AdminScriptTestCase):
out, err = self.run_manage(args)
self.assertNoOutput(out)
self.assertOutput(
err, r"No module named '?(test_project\.)?settings'?", regex=True
err,
r"Settings module '?(test_project\.)?settings'? could not be imported",
regex=True,
)
def test_custom_command_with_settings(self):
@@ -1423,7 +1425,7 @@ class ManageSettingsWithSettingsErrors(AdminScriptTestCase):
args = ["help"]
out, err = self.run_manage(args)
self.assertOutput(out, "only Django core commands are listed")
self.assertOutput(err, "Improper configuration")
self.assertNoOutput(err)
class ManageCheck(AdminScriptTestCase):