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

Function pytest_configure

src/_pytest/mark/__init__.py:287–297  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

285
286
287def pytest_configure(config: Config) -> None:
288 config.stash[old_mark_config_key] = MARK_GEN._config
289 MARK_GEN._config = config
290
291 empty_parameterset = config.getini(EMPTY_PARAMETERSET_OPTION)
292
293 if empty_parameterset not in ("skip", "xfail", "fail_at_collect", None, ""):
294 raise UsageError(
295 f"{EMPTY_PARAMETERSET_OPTION!s} must be one of skip, xfail or fail_at_collect"
296 f" but it is {empty_parameterset!r}"
297 )
298
299
300def pytest_unconfigure(config: Config) -> None:

Calls 2

UsageErrorClass · 0.90
getiniMethod · 0.45