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 01d3589 commit f335bb5Copy full SHA for f335bb5
testing/test_method_ordering.py
@@ -290,15 +290,17 @@ def he_method1(self):
290
undo()
291
292
293
-def test_prefix_hookimpl():
+@pytest.mark.parametrize('include_hookspec', [True, False])
294
+def test_prefix_hookimpl(include_hookspec):
295
pm = PluginManager(hookspec.project_name, "hello_")
296
- class HookSpec(object):
297
- @hookspec
298
- def hello_myhook(self, arg1):
299
- """ add to arg1 """
+ if include_hookspec:
+ class HookSpec(object):
+ @hookspec
300
+ def hello_myhook(self, arg1):
301
+ """ add to arg1 """
302
- pm.add_hookspecs(HookSpec)
303
+ pm.add_hookspecs(HookSpec)
304
305
class Plugin(object):
306
def hello_myhook(self, arg1):
0 commit comments