(self, capsys: pytest.CaptureFixture[str])
| 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"]]) |
nothing calls this directly
no test coverage detected