()
| 126 | |
| 127 | |
| 128 | def test_min_width(): |
| 129 | table = Table("foo", min_width=30) |
| 130 | table.add_row("bar") |
| 131 | console = Console() |
| 132 | assert table.__rich_measure__( |
| 133 | console, console.options.update_width(100) |
| 134 | ) == Measurement(30, 30) |
| 135 | console = Console(color_system=None) |
| 136 | console.begin_capture() |
| 137 | console.print(table) |
| 138 | output = console.end_capture() |
| 139 | print(output) |
| 140 | assert all(len(line) == 30 for line in output.splitlines()) |
| 141 | |
| 142 | |
| 143 | def test_no_columns(): |
nothing calls this directly
no test coverage detected