MCPcopy Create free account
hub / github.com/pytest-dev/pytest-bdd / pytest_generate_tests

Function pytest_generate_tests

tests/conftest.py:6–14  ·  view source on GitHub ↗
(metafunc)

Source from the content-addressed store, hash-verified

4
5
6def pytest_generate_tests(metafunc):
7 if "pytest_params" in metafunc.fixturenames:
8 parametrizations = [
9 pytest.param([], id="no-import-mode"),
10 pytest.param(["--import-mode=prepend"], id="--import-mode=prepend"),
11 pytest.param(["--import-mode=append"], id="--import-mode=append"),
12 pytest.param(["--import-mode=importlib"], id="--import-mode=importlib"),
13 ]
14 metafunc.parametrize("pytest_params", parametrizations)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…