MCPcopy
hub / github.com/django/django / test_builtin_command

Method test_builtin_command

tests/admin_scripts/tests.py:868–878  ·  view source on GitHub ↗

no settings: manage.py builtin commands fail with an error when no settings provided.

(self)

Source from the content-addressed store, hash-verified

866 "A series of tests for manage.py when there is no settings.py file."
867
868 def test_builtin_command(self):
869 """
870 no settings: manage.py builtin commands fail with an error when no
871 settings provided.
872 """
873 args = ["check", "admin_scripts"]
874 out, err = self.run_manage(args)
875 self.assertNoOutput(out)
876 self.assertOutput(
877 err, r"No module named '?(test_project\.)?settings'?", regex=True
878 )
879
880 def test_builtin_with_bad_settings(self):
881 """

Callers

nothing calls this directly

Calls 3

run_manageMethod · 0.80
assertNoOutputMethod · 0.80
assertOutputMethod · 0.80

Tested by

no test coverage detected