-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
good first issueeasy issue that is friendly to new contributoreasy issue that is friendly to new contributortype: docsdocumentation improvement, missing or needing clarificationdocumentation improvement, missing or needing clarification
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.
Metadata
Metadata
Assignees
Labels
good first issueeasy issue that is friendly to new contributoreasy issue that is friendly to new contributortype: docsdocumentation improvement, missing or needing clarificationdocumentation improvement, missing or needing clarification