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

Function test_reportchars_all_error

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

Source from the content-addressed store, hash-verified

1109
1110
1111def test_reportchars_all_error(pytester: Pytester) -> None:
1112 pytester.makepyfile(
1113 conftest="""
1114 def pytest_runtest_teardown():
1115 assert 0
1116 """,
1117 test_simple="""
1118 def test_foo():
1119 pass
1120 """,
1121 )
1122 result = pytester.runpytest("-ra")
1123 result.stdout.fnmatch_lines(["ERROR*test_foo*"])
1124
1125
1126def test_errors_in_xfail_skip_expressions(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected