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

Method test_markup

testing/io/test_terminalwriter.py:127–129  ·  view source on GitHub ↗
(self, tw, bold: bool, color: str)

Source from the content-addressed store, hash-verified

125 @pytest.mark.parametrize("bold", (True, False))
126 @pytest.mark.parametrize("color", ("red", "green"))
127 def test_markup(self, tw, bold: bool, color: str) -> None:
128 text = tw.markup("hello", **{color: True, "bold": bold})
129 assert "hello" in text
130
131 def test_markup_bad(self, tw) -> None:
132 with pytest.raises(ValueError):

Callers

nothing calls this directly

Calls 1

markupMethod · 0.45

Tested by

no test coverage detected