(self)
| 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"]) |
nothing calls this directly
no test coverage detected