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

Method test_collectonly_failed_module

testing/test_terminal.py:458–461  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

456 )
457
458 def test_collectonly_failed_module(self, pytester: Pytester) -> None:
459 pytester.makepyfile("""raise ValueError(0)""")
460 result = pytester.runpytest("--collect-only")
461 result.stdout.fnmatch_lines(["*raise ValueError*", "*1 error*"])
462
463 def test_collectonly_fatal(self, pytester: Pytester) -> None:
464 pytester.makeconftest(

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected