5 with
open('config.yaml') as f
:
9 def pytest_addoption(parser
):
11 parser
.addoption("--{}".format(param
),
13 type="{}".format(config
[param
]["type"]),
14 default
="{}".format(config
[param
]["default"]),
15 help="{}".format(config
[param
]["description"])
19 def pytest_generate_tests(metafunc
):
21 if param
in metafunc
.fixturenames
:
22 metafunc
.parametrize(param
, [metafunc
.config
.getoption(param
)])