We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84366fb commit a941fb4Copy full SHA for a941fb4
tests/test_config.py
@@ -197,6 +197,10 @@ class Rule:
197
{'multiple': ['item4']})
198
199
def test_invalid_rule(self):
200
+ with self.assertRaisesRegex(
201
+ config.YamlLintConfigError,
202
+ 'invalid config: rules should be a dict'):
203
+ config.YamlLintConfig('rules:\n')
204
with self.assertRaisesRegex(
205
config.YamlLintConfigError,
206
'invalid config: rule "colons": should be either '
0 commit comments