()
| 137 | |
| 138 | |
| 139 | def test_vertical_center(): |
| 140 | console = Console(color_system=None, height=6) |
| 141 | console.begin_capture() |
| 142 | vertical_center = VerticalCenter("foo") |
| 143 | repr(vertical_center) |
| 144 | console.print(vertical_center) |
| 145 | result = console.end_capture() |
| 146 | print(repr(result)) |
| 147 | expected = " \n \nfoo\n \n \n \n" |
| 148 | assert result == expected |
| 149 | assert Measurement.get(console, console.options, vertical_center) == Measurement( |
| 150 | 3, 3 |
| 151 | ) |
nothing calls this directly
no test coverage detected