Output: maxcolwidth will result in autowrapping longer cells
()
| 102 | |
| 103 | |
| 104 | def test_plain_maxcolwidth_autowraps(): |
| 105 | "Output: maxcolwidth will result in autowrapping longer cells" |
| 106 | table = [["hdr", "fold"], ["1", "very long data"]] |
| 107 | expected = "\n".join([" hdr fold", " 1 very long", " data"]) |
| 108 | result = tabulate( |
| 109 | table, headers="firstrow", tablefmt="plain", maxcolwidths=[10, 10] |
| 110 | ) |
| 111 | assert_equal(expected, result) |
| 112 | |
| 113 | |
| 114 | def test_plain_maxcolwidth_autowraps_with_sep(): |
nothing calls this directly
no test coverage detected