Replies: 1 comment 15 replies
-
the plugin-manager provides mechanisms to access plugin objects without a clear idea of how your plugin self-enables is hard to give further suggestions if you self-register a plugin object, i'd recommend to put a reference into the stash using a stash-key to ease finding it |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm developing a small plugin for use internally that will be registered through a setuptools entry point.
In my attempts to write tests for the plugin, I wish to patch a method that is part of an object included in one of the modules. However, patching directly doesn't have any affect. This isn't really surprising, but I'm unsure of exactly how the plugin is loaded and what I would need to patch. I suspect there is something in the
pytestconfig
object that I can patch.Is it possible to patch a plugin that is installed via a
setup.py
file?Beta Was this translation helpful? Give feedback.
All reactions