MCPcopy
hub / github.com/PaddlePaddle/PaddleFormers / pytest_generate_tests

Function pytest_generate_tests

scripts/regression/conftest.py:64–71  ·  view source on GitHub ↗
(metafunc)

Source from the content-addressed store, hash-verified

62
63
64def pytest_generate_tests(metafunc):
65 if "model_key" in metafunc.fixturenames:
66 cli_value = metafunc.config.getoption("--models")
67 if cli_value == "all":
68 models = get_all_models_from_config()
69 else:
70 models = [m.strip() for m in cli_value.split(",")]
71 metafunc.parametrize("model_key", models)
72
73
74def pytest_collection_modifyitems(config, items):

Callers

nothing calls this directly

Calls 2

splitMethod · 0.45

Tested by

no test coverage detected