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

Method test_collectonly_missing_path

testing/test_terminal.py:511–518  ·  view source on GitHub ↗

Issue 115: failure in parseargs will cause session not to have the items attribute.

(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

509 )
510
511 def test_collectonly_missing_path(self, pytester: Pytester) -> None:
512 """Issue 115: failure in parseargs will cause session not to
513 have the items attribute."""
514 result = pytester.runpytest("--collect-only", "uhm_missing_path")
515 assert result.ret == 4
516 result.stderr.fnmatch_lines(
517 ["*ERROR: file or directory not found: uhm_missing_path"]
518 )
519
520 def test_collectonly_quiet(self, pytester: Pytester) -> None:
521 pytester.makepyfile("def test_foo(): pass")

Callers

nothing calls this directly

Calls 2

fnmatch_linesMethod · 0.80
runpytestMethod · 0.45

Tested by

no test coverage detected