We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pytest_plugins
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When adding a pytest plugin to conftest.py's pytest_plugins symbol, this plugin is not reported:
conftest.py
pytest --setup-plan
pytest --version --version
Environment:
MWE:
# tests/conftest.py pytest_plugins = [ "tests.myplugin" ] # tests/myplugin.py import pytest @pytest.fixture def myfixture(): return 42 # tests/test_.py def test_(myfixture): assert True
Output of pytest --setup-plan
pytest --setup-plan ========================================================================================================== test session starts =========================================================================================================== platform darwin -- Python 3.12.0, pytest-8.3.1, pluggy-1.5.0 rootdir: /Users/x/src/y configfile: pyproject.toml collected 1 item tests/test_.py SETUP F myfixture tests/test_.py::test_ (fixtures used: myfixture) TEARDOWN F myfixture ========================================================================================================= no tests ran in 0.00s ==========================================================================================================
I consider this a related issue: #12615
The text was updated successfully, but these errors were encountered:
Actually, this is a duplicate of #12615. The root cause is same and the same code path is used.
Sorry, something went wrong.
Thank you, closing.
No branches or pull requests
When adding a pytest plugin to
conftest.py
'spytest_plugins
symbol, this plugin is not reported:pytest --setup-plan
pytest --version --version
.(Is this supposed to report the same plugins?
Environment:
MWE:
Output of
pytest --setup-plan
I consider this a related issue: #12615
The text was updated successfully, but these errors were encountered: