Skip to content

Commit e80945d

Browse files
authored
Update conftest.py
1 parent a0cacb2 commit e80945d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conftest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
def pytest_addoption(parser):
2-
parser.addoption("--token", action="store")
2+
parser.addoption("--token", action="store", default="")
33

44

55
def pytest_generate_tests(metafunc):
66
# This is called for every test. Only get/set command line arguments
77
# if the argument is specified in the list of test "fixturenames".
88
if 'token' in metafunc.fixturenames:
9-
metafunc.parametrize("token", metafunc.config.getoption('token'))
9+
metafunc.parametrize("token", [metafunc.config.getoption('token')])

0 commit comments

Comments
 (0)