How to make a plugin of a plugin #10370
Unanswered
jamesellis1999
asked this question in
General
Replies: 1 comment 3 replies
-
Based on the information here it's not clear what is missing, was your plugin installed, did you install the extra plugins you configured in setup.cfg? |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hi,
I am looking to make a simple plugin to extend the
pytest-postgresql
plugin. One of the default fixturespytest-postgresql
provides is calledpostgresql_proc
. I want to extend this fixture with another fixture. In essence, myplugin.py
file looks as such:When I run
pytester
I get the following:I have read the user manual which suggests the following when collaborating with other plugins (section 2.15.7):
However, it is not clear in the user manual where this should be used. I have tried using it in hooks and within the
run_migrations
fixture (usingrequest.config.pluginmanager
) but this did not work.My setup.cfg looks as such:
Any suggestions would be much appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions