MCPcopy Index your code
hub / github.com/google/adk-python / pytest_generate_tests

Function pytest_generate_tests

tests/unittests/conftest.py:94–100  ·  view source on GitHub ↗

Generate test cases for each environment setup.

(metafunc: Metafunc)

Source from the content-addressed store, hash-verified

92
93@hookimpl(tryfirst=True)
94def pytest_generate_tests(metafunc: Metafunc):
95 """Generate test cases for each environment setup."""
96 if env_variables.__name__ in metafunc.fixturenames:
97 if not _is_explicitly_marked(env_variables.__name__, metafunc):
98 metafunc.parametrize(
99 env_variables.__name__, ENV_SETUPS.keys(), indirect=True
100 )
101
102
103def _is_explicitly_marked(mark_name: str, metafunc: Metafunc) -> bool:

Callers

nothing calls this directly

Calls 2

_is_explicitly_markedFunction · 0.70
keysMethod · 0.45

Tested by

no test coverage detected