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

Function test_linematcher_no_matching_after_match

testing/test_pytester.py:597–602  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

595
596
597def test_linematcher_no_matching_after_match() -> None:
598 lm = LineMatcher(["1", "2", "3"])
599 lm.fnmatch_lines(["1", "3"])
600 with pytest.raises(pytest.fail.Exception) as e:
601 lm.no_fnmatch_line("*")
602 assert str(e.value).splitlines() == ["fnmatch: '*'", " with: '1'"]
603
604
605def test_linematcher_string_api() -> None:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.95
no_fnmatch_lineMethod · 0.95
LineMatcherClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…