mirror of
https://github.com/adrienverge/yamllint.git
synced 2025-02-16 13:04:45 -06:00
Tests: config: Check the non-valid-yaml-config case
This commit is contained in:
parent
29aceb430a
commit
08615ec4f8
@ -32,6 +32,10 @@ class SimpleConfigTestCase(unittest.TestCase):
|
|||||||
|
|
||||||
self.assertEqual(len(new.enabled_rules()), 1)
|
self.assertEqual(len(new.enabled_rules()), 1)
|
||||||
|
|
||||||
|
def test_invalid_conf(self):
|
||||||
|
with self.assertRaises(config.YamlLintConfigError):
|
||||||
|
config.YamlLintConfig('not: valid: yaml')
|
||||||
|
|
||||||
def test_unknown_rule(self):
|
def test_unknown_rule(self):
|
||||||
with self.assertRaisesRegexp(
|
with self.assertRaisesRegexp(
|
||||||
config.YamlLintConfigError,
|
config.YamlLintConfigError,
|
||||||
|
Loading…
Reference in New Issue
Block a user