MCPcopy
hub / github.com/pytest-dev/pytest / pytest_configure

Function pytest_configure

src/_pytest/python.py:127–144  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

125
126
127def pytest_configure(config: Config) -> None:
128 config.addinivalue_line(
129 "markers",
130 "parametrize(argnames, argvalues): call a test function multiple "
131 "times passing in different arguments in turn. argvalues generally "
132 "needs to be a list of values if argnames specifies only one name "
133 "or a list of tuples of values if argnames specifies multiple names. "
134 "Example: @parametrize('arg1', [1,2]) would lead to two calls of the "
135 "decorated test function, one with arg1=1 and another with arg1=2."
136 "see https://docs.pytest.org/en/stable/how-to/parametrize.html for more info "
137 "and examples.",
138 )
139 config.addinivalue_line(
140 "markers",
141 "usefixtures(fixturename1, fixturename2, ...): mark tests as needing "
142 "all of the specified fixtures. see "
143 "https://docs.pytest.org/en/stable/explanation/fixtures.html#usefixtures ",
144 )
145
146
147def async_fail(nodeid: str) -> None:

Callers

nothing calls this directly

Calls 1

addinivalue_lineMethod · 0.80

Tested by

no test coverage detected