For a directory like below:
|- A
|- conftest.py
|- B
|- conftest.py (<== we have addoption here)
When we invoke the test from directory A, the CLI args added through addoption in B/conftest.py was loaded correctly.
The new version seems to fail here.
It throwspytest: error: unrecognized arguments: <args-list>
pytest: 9.1.0
OS: Ubuntu 24.04
For a directory like below:
When we invoke the test from directory
A, the CLI args added throughaddoptioninB/conftest.pywas loaded correctly.The new version seems to fail here.
It throws
pytest: error: unrecognized arguments: <args-list>pytest: 9.1.0
OS: Ubuntu 24.04
pip listfrom the virtual environment you are using