From 1b98aa68e05168aa567fa180c7f22d6646ad4ade Mon Sep 17 00:00:00 2001 From: Ben Cail Date: Wed, 13 Nov 2024 14:12:52 -0500 Subject: [PATCH] add a test for a command that doesn't require settings --- tests/admin_scripts/tests.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index b714c79651..ac384ce77e 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -879,6 +879,12 @@ class ManageNoSettings(AdminScriptTestCase): self.assertNoOutput(out) self.assertOutput(err, "Settings module bad_settings could not be imported") + def test_startapp_with_bad_settings(self): + args = ["startapp", "--settings=bad_settings", "app1"] + out, err = self.run_manage(args) + self.assertNoOutput(out) + self.assertNoOutput(err) + def test_builtin_with_bad_environment(self): """ no settings: manage.py builtin commands fail if settings file (from