Removing pluginmanager as parameter in definition of pytest_addoption hook

This commit is contained in:
Joshua Storck 2019-10-30 16:25:50 -04:00
parent 0027908e9e
commit f400804206
4 changed files with 5 additions and 5 deletions

View File

@ -364,7 +364,7 @@ specifies via named environments:
import pytest
def pytest_addoption(parser, pluginmanager):
def pytest_addoption(parser):
parser.addoption(
"-E",
action="store",

View File

@ -36,7 +36,7 @@ Now we add a test configuration like this:
# content of conftest.py
def pytest_addoption(parser, pluginmanager):
def pytest_addoption(parser):
parser.addoption("--all", action="store_true", help="run all combinations")

View File

@ -33,7 +33,7 @@ provide the ``cmdopt`` through a :ref:`fixture function <fixture function>`:
import pytest
def pytest_addoption(parser, pluginmanager):
def pytest_addoption(parser):
parser.addoption(
"--cmdopt", action="store", default="type1", help="my option: type1 or type2"
)
@ -151,7 +151,7 @@ line option to control skipping of ``pytest.mark.slow`` marked tests:
import pytest
def pytest_addoption(parser, pluginmanager):
def pytest_addoption(parser):
parser.addoption(
"--runslow", action="store_true", default=False, help="run slow tests"
)

View File

@ -338,7 +338,7 @@ string value of ``Hello World!`` if we do not supply a value or ``Hello
import pytest
def pytest_addoption(parser, pluginmanager):
def pytest_addoption(parser):
group = parser.getgroup("helloworld")
group.addoption(
"--name",