MCPcopy Create free account
hub / github.com/PyCQA/flake8 / test_parameters_for_function_plugin

Function test_parameters_for_function_plugin

tests/unit/plugins/finder_test.py:649–660  ·  view source on GitHub ↗

Verify that we retrieve the parameters for a function plugin.

()

Source from the content-addressed store, hash-verified

647
648
649def test_parameters_for_function_plugin():
650 """Verify that we retrieve the parameters for a function plugin."""
651
652 def fake_plugin(physical_line, self, tree, optional=None):
653 raise NotImplementedError
654
655 assert finder._parameters_for(fake_plugin) == {
656 "physical_line": True,
657 "self": True,
658 "tree": True,
659 "optional": False,
660 }
661
662
663def test_load_plugin_import_error():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected