diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-04-26 16:37:57 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-04-30 10:48:30 +0200 |
| commit | 6866c91b638de5368c18713fa851bfe56253ea55 (patch) | |
| tree | 0d9003de07959a3bdb3be808fdff098dfa7c7fac /tests | |
| parent | eb16c7260e573ec513d84cb586d96bdf508f3173 (diff) | |
Fixed #30418 -- Added --skip-checks management command option.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/user_commands/tests.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/user_commands/tests.py b/tests/user_commands/tests.py index 2d1f8f834d..76991b1122 100644 --- a/tests/user_commands/tests.py +++ b/tests/user_commands/tests.py @@ -253,6 +253,16 @@ class CommandRunTests(AdminScriptTestCase): self.assertNoOutput(err) self.assertEqual(out.strip(), 'Set foo') + def test_skip_checks(self): + self.write_settings('settings.py', apps=['django.contrib.staticfiles', 'user_commands'], sdict={ + # (staticfiles.E001) The STATICFILES_DIRS setting is not a tuple or + # list. + 'STATICFILES_DIRS': '"foo"', + }) + out, err = self.run_manage(['set_option', '--skip-checks', '--set', 'foo']) + self.assertNoOutput(err) + self.assertEqual(out.strip(), 'Set foo') + class UtilsTests(SimpleTestCase): |
