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

Function test_size_properties

tests/test_console.py:851–859  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

849
850
851def test_size_properties() -> None:
852 console = Console(width=80, height=25, legacy_windows=False)
853 assert console.size == ConsoleDimensions(80, 25)
854 console.size = (10, 20)
855 assert console.size == ConsoleDimensions(10, 20)
856 console.width = 5
857 assert console.size == ConsoleDimensions(5, 20)
858 console.height = 10
859 assert console.size == ConsoleDimensions(5, 10)
860
861
862def test_print_newline_start() -> None:

Callers

nothing calls this directly

Calls 2

ConsoleClass · 0.90
ConsoleDimensionsClass · 0.90

Tested by

no test coverage detected