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

Method format

testing/conftest.py:200–202  ·  testing/conftest.py::ColorMapping.format

Straightforward replacement of color names to their ASCII codes.

(cls, lines: list[str])

Source from the content-addressed store, hash-verified

198
199 @classmethod
200 def format(cls, lines: list[str]) -> list[str]:
201 class="st">""class="st">"Straightforward replacement of color names to their ASCII codes."class="st">""
202 return [line.format(**cls.COLORS) for line in lines]
203
204 @classmethod
205 def format_for_fnmatch(cls, lines: list[str]) -> list[str]:

Callers 13

repr_failureMethod · 0.45
test_xfail_handlingFunction · 0.45
test_full_output_vvvFunction · 0.45
test_rootdir_option_argFunction · 0.45
format_for_fnmatchMethod · 0.45
format_for_rematchMethod · 0.45
strip_colorsMethod · 0.45
test_annotated_groupFunction · 0.45
test_sysfind_multipleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected