MCPcopy
hub / github.com/django/django / test_builtin_with_bad_settings

Method test_builtin_with_bad_settings

tests/admin_scripts/tests.py:880–888  ·  view source on GitHub ↗

no settings: manage.py builtin commands fail if settings file (from argument) doesn't exist.

(self)

Source from the content-addressed store, hash-verified

878 )
879
880 def test_builtin_with_bad_settings(self):
881 """
882 no settings: manage.py builtin commands fail if settings file (from
883 argument) doesn't exist.
884 """
885 args = ["check", "--settings=bad_settings", "admin_scripts"]
886 out, err = self.run_manage(args)
887 self.assertNoOutput(out)
888 self.assertOutput(err, "No module named '?bad_settings'?", regex=True)
889
890 def test_builtin_with_bad_environment(self):
891 """

Callers

nothing calls this directly

Calls 3

run_manageMethod · 0.80
assertNoOutputMethod · 0.80
assertOutputMethod · 0.80

Tested by

no test coverage detected