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.
PluginManager.add_plugin
PluginManager._add_plugin
1 parent 0faf6f0 commit 52b336bCopy full SHA for 52b336b
tests/e2e/test_e2e.py
@@ -45,7 +45,12 @@ def _load_plugins(self, io: IO | None = None) -> None:
45
return
46
47
manager = PluginManager(ApplicationPlugin.group)
48
- manager.add_plugin(PypiProxyPlugin())
+ try:
49
+ # TODO: _add_plugin is used in 2.0+. Remove add_plugin when
50
+ # it's upgraded
51
+ manager.add_plugin(PypiProxyPlugin())
52
+ except AttributeError:
53
+ manager._add_plugin(PypiProxyPlugin())
54
55
self._plugins_loaded = True
56
0 commit comments