Replies: 1 comment
-
In your conftest you can define: def pytest_configure(session)
session.config.pluginmanager.hasplugin(name) https://docs.pytest.org/en/latest/reference/reference.html#pytest.hookspec.pytest_configure |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to find out if certain pytest plugins are loaded since they cause problem and test failures: xdist, randomly, hypothesis. I have used the
-p no:xdist
in pyproject.toml, but it's possible to bypass that. Is there something I can put inconftest.py
to provide a safety check so I don't go down that rabbit hole again?Beta Was this translation helpful? Give feedback.
All reactions