()
| 336 | |
| 337 | |
| 338 | def test_clear() -> None: |
| 339 | console = Console(file=io.StringIO(), force_terminal=True, _environ={}) |
| 340 | console.clear() |
| 341 | console.clear(home=False) |
| 342 | assert console.file.getvalue() == "\033[2J\033[H" + "\033[2J" |
| 343 | |
| 344 | |
| 345 | def test_clear_no_terminal() -> None: |