MCPcopy
hub / github.com/django/django / test_skip_checks

Method test_skip_checks

tests/user_commands/tests.py:530–542  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

528 self.assertEqual(out.strip(), "Set foo")
529
530 def test_skip_checks(self):
531 self.write_settings(
532 "settings.py",
533 apps=["django.contrib.staticfiles", "user_commands"],
534 sdict={
535 # (staticfiles.E001) The STATICFILES_DIRS setting is not a
536 # tuple or list.
537 "STATICFILES_DIRS": '"foo"',
538 },
539 )
540 out, err = self.run_manage(["set_option", "--skip-checks", "--set", "foo"])
541 self.assertNoOutput(err)
542 self.assertEqual(out.strip(), "Set foo")
543
544 def test_subparser_error_formatting(self):
545 self.write_settings("settings.py", apps=["user_commands"])

Callers

nothing calls this directly

Calls 3

write_settingsMethod · 0.80
run_manageMethod · 0.80
assertNoOutputMethod · 0.80

Tested by

no test coverage detected