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

Function test_justify_renderable_none

tests/test_console.py:448–457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

446
447
448def test_justify_renderable_none() -> None:
449 console = Console(
450 file=io.StringIO(),
451 force_terminal=True,
452 width=20,
453 legacy_windows=False,
454 _environ={},
455 )
456 console.print(Panel("FOO", expand=False, padding=0), justify=None)
457 assert console.file.getvalue() == "╭───╮\n│FOO│\n╰───╯\n"
458
459
460def test_justify_renderable_left() -> None:

Callers

nothing calls this directly

Calls 3

printMethod · 0.95
ConsoleClass · 0.90
PanelClass · 0.90

Tested by

no test coverage detected