mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-11 15:24:18 +00:00
instrument coverage on tests and require 100% coverage there
This commit is contained in:
parent
d097d5103d
commit
93a17a806d
9 changed files with 16 additions and 16 deletions
|
|
@ -241,7 +241,7 @@ def test_parameters_for_class_plugin():
|
|||
"""Verify that we can retrieve the parameters for a class plugin."""
|
||||
class FakeCheck(object):
|
||||
def __init__(self, tree):
|
||||
pass
|
||||
raise NotImplementedError
|
||||
|
||||
plugin = plugin_manager.Plugin('plugin-name', object())
|
||||
plugin._plugin = FakeCheck
|
||||
|
|
@ -251,7 +251,7 @@ def test_parameters_for_class_plugin():
|
|||
def test_parameters_for_function_plugin():
|
||||
"""Verify that we retrieve the parameters for a function plugin."""
|
||||
def fake_plugin(physical_line, self, tree, optional=None):
|
||||
pass
|
||||
raise NotImplementedError
|
||||
|
||||
plugin = plugin_manager.Plugin('plugin-name', object())
|
||||
plugin._plugin = fake_plugin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue