mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #30418 -- Added --skip-checks management command option.
This commit is contained in:
committed by
Mariusz Felisiak
parent
eb16c7260e
commit
6866c91b63
@@ -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):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user