Skip to content

Commit 52b336b

Browse files
authored
fix: PluginManager.add_plugin -> PluginManager._add_plugin (chadac#16)
* Used in our e2e tests, looks like this was changed upstream to a private method * Since this is a test I'll continue to use the private method
1 parent 0faf6f0 commit 52b336b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/e2e/test_e2e.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ def _load_plugins(self, io: IO | None = None) -> None:
4545
return
4646

4747
manager = PluginManager(ApplicationPlugin.group)
48-
manager.add_plugin(PypiProxyPlugin())
48+
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())
4954

5055
self._plugins_loaded = True
5156

0 commit comments

Comments
 (0)