Allow disabling of python plugin

Fixes https://github.com/pytest-dev/pytest/issues/5277.
This commit is contained in:
Daniel Hahler
2019-05-16 16:30:40 +02:00
parent d94b4b031f
commit 93fd9debe3
5 changed files with 28 additions and 10 deletions

View File

@@ -79,15 +79,10 @@ def pytest_addoption(parser):
default=False,
help="show fixtures per test",
)
parser.addini(
"usefixtures",
type="args",
default=[],
help="list of default fixtures to be used with this project",
)
parser.addini(
"python_files",
type="args",
# NOTE: default is also used in AssertionRewritingHook.
default=["test_*.py", "*_test.py"],
help="glob-style file patterns for Python test module discovery",
)