Removing pluginmanager as parameter in definition of pytest_addoption hook
This commit is contained in:
parent
0027908e9e
commit
f400804206
|
@ -364,7 +364,7 @@ specifies via named environments:
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
def pytest_addoption(parser, pluginmanager):
|
def pytest_addoption(parser):
|
||||||
parser.addoption(
|
parser.addoption(
|
||||||
"-E",
|
"-E",
|
||||||
action="store",
|
action="store",
|
||||||
|
|
|
@ -36,7 +36,7 @@ Now we add a test configuration like this:
|
||||||
# content of conftest.py
|
# content of conftest.py
|
||||||
|
|
||||||
|
|
||||||
def pytest_addoption(parser, pluginmanager):
|
def pytest_addoption(parser):
|
||||||
parser.addoption("--all", action="store_true", help="run all combinations")
|
parser.addoption("--all", action="store_true", help="run all combinations")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ provide the ``cmdopt`` through a :ref:`fixture function <fixture function>`:
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
def pytest_addoption(parser, pluginmanager):
|
def pytest_addoption(parser):
|
||||||
parser.addoption(
|
parser.addoption(
|
||||||
"--cmdopt", action="store", default="type1", help="my option: type1 or type2"
|
"--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
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
def pytest_addoption(parser, pluginmanager):
|
def pytest_addoption(parser):
|
||||||
parser.addoption(
|
parser.addoption(
|
||||||
"--runslow", action="store_true", default=False, help="run slow tests"
|
"--runslow", action="store_true", default=False, help="run slow tests"
|
||||||
)
|
)
|
||||||
|
|
|
@ -338,7 +338,7 @@ string value of ``Hello World!`` if we do not supply a value or ``Hello
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
def pytest_addoption(parser, pluginmanager):
|
def pytest_addoption(parser):
|
||||||
group = parser.getgroup("helloworld")
|
group = parser.getgroup("helloworld")
|
||||||
group.addoption(
|
group.addoption(
|
||||||
"--name",
|
"--name",
|
||||||
|
|
Loading…
Reference in New Issue