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

Function test_linematcher_no_matching_after_match

testing/test_pytester.py:607–612  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

605
606
607def test_linematcher_no_matching_after_match() -> None:
608 lm = LineMatcher(["1", "2", "3"])
609 lm.fnmatch_lines(["1", "3"])
610 with pytest.raises(pytest.fail.Exception) as e:
611 lm.no_fnmatch_line("*")
612 assert str(e.value).splitlines() == ["fnmatch: '*'", " with: '1'"]
613
614
615def 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