MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / test_print_error_plain

Method test_print_error_plain

tests/test_output.py:166–171  ·  view source on GitHub ↗
(self, capsys: pytest.CaptureFixture[str])

Source from the content-addressed store, hash-verified

164 assert "\033" not in out
165
166 def test_print_error_plain(self, capsys: pytest.CaptureFixture[str]) -> None:
167 print_error("bad", "E001")
168 err = capsys.readouterr().err
169 assert "Error: bad" in err
170 assert "Code: E001" in err
171 assert "\033" not in err
172
173 def test_print_warning_plain(self, capsys: pytest.CaptureFixture[str]) -> None:
174 print_warning("caution")

Callers

nothing calls this directly

Calls 1

print_errorFunction · 0.90

Tested by

no test coverage detected