Skip to content

Commit

Permalink
fix: PluginManager.add_plugin -> PluginManager._add_plugin (#16)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
chadac authored Oct 7, 2024
1 parent 0faf6f0 commit 52b336b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/e2e/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ def _load_plugins(self, io: IO | None = None) -> None:
return

manager = PluginManager(ApplicationPlugin.group)
manager.add_plugin(PypiProxyPlugin())
try:
# TODO: _add_plugin is used in 2.0+. Remove add_plugin when
# it's upgraded
manager.add_plugin(PypiProxyPlugin())
except AttributeError:
manager._add_plugin(PypiProxyPlugin())

self._plugins_loaded = True

Expand Down

0 comments on commit 52b336b

Please sign in to comment.