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

Method test_collectonly_fatal

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

Source from the content-addressed store, hash-verified

461 result.stdout.fnmatch_lines(["*raise ValueError*", "*1 error*"])
462
463 def test_collectonly_fatal(self, pytester: Pytester) -> None:
464 pytester.makeconftest(
465 """
466 def pytest_collectstart(collector):
467 assert 0, "urgs"
468 """
469 )
470 result = pytester.runpytest("--collect-only")
471 result.stdout.fnmatch_lines(["*INTERNAL*args*"])
472 assert result.ret == 3
473
474 def test_collectonly_simple(self, pytester: Pytester) -> None:
475 p = pytester.makepyfile(

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makeconftestMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected