MCPcopy
hub / github.com/Textualize/rich / test_justify_renderable_right

Function test_justify_renderable_right

tests/test_console.py:484–496  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

482
483
484def 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
499class BrokenRenderable:

Callers

nothing calls this directly

Calls 3

printMethod · 0.95
ConsoleClass · 0.90
PanelClass · 0.90

Tested by

no test coverage detected