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

Function test_default_markers

testing/test_skipping.py:1191–1198  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1189
1190
1191def test_default_markers(pytester: Pytester) -> None:
1192 result = pytester.runpytest("--markers")
1193 result.stdout.fnmatch_lines(
1194 [
1195 "*skipif(condition, ..., [*], reason=...)*skip*",
1196 "*xfail(condition, ..., [*], reason=..., run=True, raises=None, strict=xfail_strict)*expected failure*",
1197 ]
1198 )
1199
1200
1201def test_xfail_test_setup_exception(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 2

fnmatch_linesMethod · 0.80
runpytestMethod · 0.45

Tested by

no test coverage detected