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

Method test_builtin_command

tests/admin_scripts/tests.py:274–282  ·  view source on GitHub ↗

default: django-admin builtin commands fail with an error when no settings provided.

(self)

Source from the content-addressed store, hash-verified

272 self.write_settings("settings.py")
273
274 def test_builtin_command(self):
275 """
276 default: django-admin builtin commands fail with an error when no
277 settings provided.
278 """
279 args = ["check", "admin_scripts"]
280 out, err = self.run_django_admin(args)
281 self.assertNoOutput(out)
282 self.assertOutput(err, "settings are not configured")
283
284 def test_builtin_with_settings(self):
285 """

Callers

nothing calls this directly

Calls 3

run_django_adminMethod · 0.80
assertNoOutputMethod · 0.80
assertOutputMethod · 0.80

Tested by

no test coverage detected