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

Function wrap_escape

testing/python/raises_group.py:24–25  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

22
23
24def wrap_escape(s: str) -> str:
25 return "^" + re.escape(s) + "$"
26
27
28def fails_raises_group(msg: str, add_prefix: bool = True) -> RaisesExc[Failed]:

Callers 6

fails_raises_groupFunction · 0.70
test_raises_groupFunction · 0.70
test_raisesexcFunction · 0.70
test_assert_matchesFunction · 0.70
test_annotated_groupFunction · 0.70
test_tuplesFunction · 0.70

Calls

no outgoing calls

Tested by 5

test_raises_groupFunction · 0.56
test_raisesexcFunction · 0.56
test_assert_matchesFunction · 0.56
test_annotated_groupFunction · 0.56
test_tuplesFunction · 0.56