Skip to content

Commit

Permalink
fix: add a test case that the plugin is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ssato committed Oct 18, 2020
1 parent 5eedcdf commit a282350
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/yamllint_plugin_example/tests/test_forbid_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
class TestCase(PluginTestCase):
rule_id = 'forbid-comments'

def test_plugin_disabled(self):
conf = 'forbid-comments: false\n'
self.check('---\n'
'# comment\n', conf)

def test_disabled(self):
conf = ('forbid-comments:\n'
' forbid: false\n')
Expand Down

0 comments on commit a282350

Please sign in to comment.