You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When fixtures with the same name are defined in neighboring directories with similar names (e.g. aaa and aaa1 as in example below) fixture from only one of the directories is invoked.
I have repeated this with pytest-2.7 and pytest-3.2 on with both python2 and python3 on various Linux OSs.
When fixtures with the same name are defined in neighboring directories with similar names (e.g.
aaa
andaaa1
as in example below) fixture from only one of the directories is invoked.I have repeated this with pytest-2.7 and pytest-3.2 on with both python2 and python3 on various Linux OSs.
Consider the following directory/file tree:
pytest
├── aaa
│ ├── conftest.py
│ └── test_fixa.py
├── aaa1
│ ├── conftest.py
│ └── test_fix1.py
├── aaa2
│ ├── conftest.py
│ └── test_fix.py
└── aaaa
├── conftest.py
└── test_fixaa.py
Each conftest.py defines fixture fix, as
and tests defined as
When the tests are run the following output is generated:
The text was updated successfully, but these errors were encountered: