Overriding autouse fixture with a parametrized fixture does not work #1601
Labels
topic: fixtures
anything involving fixtures directly or indirectly
type: bug
problem that needs to be addressed
If you try to override an autouse fixture w/ a parametrized fixture in a subdirectory's conftest.py, pytest will raise a ValueError "Duplicate '<fixture_name>'". This will work if you either do not have the first fixture set to Autouse, or if the second fixture is not parametrized.
Main conftest.py:
subdirectory/conftest.py::
subdirectory/test_me.py::
Returns the following error:
The text was updated successfully, but these errors were encountered: