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

Method test_builtin_command

tests/admin_scripts/tests.py:223–231  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

221 "A series of tests for django-admin when there is no settings.py file."
222
223 def test_builtin_command(self):
224 """
225 no settings: django-admin builtin commands fail with an error when no
226 settings provided.
227 """
228 args = ["check", "admin_scripts"]
229 out, err = self.run_django_admin(args)
230 self.assertNoOutput(out)
231 self.assertOutput(err, "settings are not configured")
232
233 def test_builtin_with_bad_settings(self):
234 """

Callers

nothing calls this directly

Calls 3

run_django_adminMethod · 0.80
assertNoOutputMethod · 0.80
assertOutputMethod · 0.80

Tested by

no test coverage detected