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

Function test_justify_renderable_center

tests/test_console.py:472–481  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

470
471
472def test_justify_renderable_center() -> None:
473 console = Console(
474 file=io.StringIO(),
475 force_terminal=True,
476 width=10,
477 legacy_windows=False,
478 _environ={},
479 )
480 console.print(Panel("FOO", expand=False, padding=0), justify="center")
481 assert console.file.getvalue() == " ╭───╮ \n │FOO│ \n ╰───╯ \n"
482
483
484def test_justify_renderable_right() -> None:

Callers

nothing calls this directly

Calls 3

printMethod · 0.95
ConsoleClass · 0.90
PanelClass · 0.90

Tested by

no test coverage detected