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

Method test_collectonly_fatal

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

Source from the content-addressed store, hash-verified

543 result.stdout.fnmatch_lines(["*raise ValueError*", "*1 error*"])
544
545 def test_collectonly_fatal(self, pytester: Pytester) -> None:
546 pytester.makeconftest(
547 """
548 def pytest_collectstart(collector):
549 assert 0, "urgs"
550 """
551 )
552 result = pytester.runpytest("--collect-only")
553 result.stdout.fnmatch_lines(["*INTERNAL*args*"])
554 assert result.ret == 3
555
556 def test_collectonly_simple(self, pytester: Pytester) -> None:
557 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