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

Method format_for_rematch

testing/conftest.py:174–176  ·  view source on GitHub ↗

Replace color names for use with LineMatcher.re_match_lines

(cls, lines: List[str])

Source from the content-addressed store, hash-verified

172
173 @classmethod
174 def format_for_rematch(cls, lines: List[str]) -> List[str]:
175 """Replace color names for use with LineMatcher.re_match_lines"""
176 return [line.format(**cls.RE_COLORS) for line in lines]
177
178 return ColorMapping
179

Callers 1

test_colored_progressMethod · 0.80

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected