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

Function pytest_configure

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

Source from the content-addressed store, hash-verified

149
150
151def pytest_configure(config: Config) -> None:
152 config.addinivalue_line(
153 "markers",
154 "parametrize(argnames, argvalues): call a test function multiple "
155 "times passing in different arguments in turn. argvalues generally "
156 "needs to be a list of values if argnames specifies only one name "
157 "or a list of tuples of values if argnames specifies multiple names. "
158 "Example: @parametrize('arg1', [1,2]) would lead to two calls of the "
159 "decorated test function, one with arg1=1 and another with arg1=2."
160 "see https://docs.pytest.org/en/stable/how-to/parametrize.html for more info "
161 "and examples.",
162 )
163 config.addinivalue_line(
164 "markers",
165 "usefixtures(fixturename1, fixturename2, ...): mark tests as needing "
166 "all of the specified fixtures. see "
167 "https://docs.pytest.org/en/stable/explanation/fixtures.html#usefixtures ",
168 )
169
170
171def async_warn_and_skip(nodeid: str) -> None:

Callers

nothing calls this directly

Calls 1

addinivalue_lineMethod · 0.80

Tested by

no test coverage detected