()
| 372 | |
| 373 | |
| 374 | def test_syntax_padding() -> None: |
| 375 | syntax = Syntax("x = 1", lexer="python", padding=(1, 3)) |
| 376 | console = Console( |
| 377 | width=20, |
| 378 | file=io.StringIO(), |
| 379 | color_system="truecolor", |
| 380 | legacy_windows=False, |
| 381 | record=True, |
| 382 | ) |
| 383 | console.print(syntax) |
| 384 | output = console.export_text() |
| 385 | assert ( |
| 386 | output == " \n x = 1 \n \n" |
| 387 | ) |
| 388 | |
| 389 | |
| 390 | def test_syntax_measure() -> None: |
nothing calls this directly
no test coverage detected