We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I have two files:
test_a.py:
test_a.py
import pytest @pytest.fixture def fix_a(): """Fixture A""" pass def test_a(fix_a): pass
and test_b.py:
test_b.py
import pytest @pytest.fixture def fix_b(): """Fixture B""" pass def test_b(fix_b): pass
Running pytest --fixtures will only show fix_a:
pytest --fixtures
fix_a
====================== test session starts ====================== platform linux -- Python 3.4.3 -- py-1.4.30 -- pytest-2.7.2 rootdir: /home/florian/tmp/fixture_test, inifile: plugins: mock collected 2 items [...] ----------------- fixtures defined from test_a ------------------ fix_a Fixture A ======================= in 0.01 seconds ========================
The text was updated successfully, but these errors were encountered:
--fixtures only shows fixtures from first file
5ec2a17
Fix pytest-dev#833
No branches or pull requests
If I have two files:
test_a.py
:and
test_b.py
:Running
pytest --fixtures
will only showfix_a
:The text was updated successfully, but these errors were encountered: