We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0cacb2 commit e80945dCopy full SHA for e80945d
conftest.py
@@ -1,9 +1,9 @@
1
def pytest_addoption(parser):
2
- parser.addoption("--token", action="store")
+ parser.addoption("--token", action="store", default="")
3
4
5
def pytest_generate_tests(metafunc):
6
# This is called for every test. Only get/set command line arguments
7
# if the argument is specified in the list of test "fixturenames".
8
if 'token' in metafunc.fixturenames:
9
- metafunc.parametrize("token", metafunc.config.getoption('token'))
+ metafunc.parametrize("token", [metafunc.config.getoption('token')])
0 commit comments