()
| 482 | |
| 483 | |
| 484 | def test_justify_renderable_right() -> None: |
| 485 | console = Console( |
| 486 | file=io.StringIO(), |
| 487 | force_terminal=True, |
| 488 | width=20, |
| 489 | legacy_windows=False, |
| 490 | _environ={}, |
| 491 | ) |
| 492 | console.print(Panel("FOO", expand=False, padding=0), justify="right") |
| 493 | assert ( |
| 494 | console.file.getvalue() |
| 495 | == " ╭───╮\n │FOO│\n ╰───╯\n" |
| 496 | ) |
| 497 | |
| 498 | |
| 499 | class BrokenRenderable: |