Closed
Description
The latest docs for parameterized tests give an example of implementing pytest_addoption in conftest.py.
But the docs for pytest_addoption itself say:
Implementing this hook from
conftest.py
files is strongly discouraged becauseconftest.py
files are lazily loaded and may give strange unknown option errors depending on the directorypy.test
is invoked from.
I am confused because I have just followed the example in the latest parameterized test docs, only to discover I'm doing something that seems to be strongly discouraged.