Verify that we retrieve the parameters for a function plugin.
()
| 647 | |
| 648 | |
| 649 | def 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 | |
| 663 | def test_load_plugin_import_error(): |
nothing calls this directly
no outgoing calls
no test coverage detected