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 eb70fb9 commit cfa7ed1Copy full SHA for cfa7ed1
testing/test_pluginmanager.py
@@ -201,6 +201,18 @@ def he_method1(self): ... # pragma: no cover
201
pm.unregister(my)
202
203
204
+def test_unregister_blocked(pm: PluginManager) -> None:
205
+ class Plugin:
206
+ pass
207
+
208
+ p = Plugin()
209
+ pm.set_blocked("error")
210
+ pm.register(p, "error")
211
+ # bloked plugins can be unregistred many times atm
212
+ pm.unregister(p, "error")
213
214
215
216
def test_register_unknown_hooks(pm: PluginManager) -> None:
217
class Plugin1:
218
@hookimpl
0 commit comments