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

Method testprint_plain_table

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

Source from the content-addressed store, hash-verified

137 assert "[Physics]" in out
138
139 def testprint_plain_table(self, capsys: pytest.CaptureFixture[str]) -> None:
140 print_plain_table(
141 ["Name", "Value"],
142 [["foo", "1"], ["bar", "2"]],
143 "My Table",
144 )
145 out = capsys.readouterr().out
146 lines = out.strip().split("\n")
147 assert lines[0] == "My Table"
148 assert lines[1] == "Name\tValue"
149 assert lines[2] == "foo\t1"
150 assert lines[3] == "bar\t2"
151
152 def test_print_plain_table_no_title(self, capsys: pytest.CaptureFixture[str]) -> None:
153 print_plain_table(["A", "B"], [["1", "2"]])

Callers

nothing calls this directly

Calls 1

print_plain_tableFunction · 0.90

Tested by

no test coverage detected