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

Function test_console_options_update_height

tests/test_console.py:106–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104
105
106def test_console_options_update_height() -> None:
107 options = ConsoleOptions(
108 ConsoleDimensions(80, 25),
109 max_height=25,
110 legacy_windows=False,
111 min_width=10,
112 max_width=20,
113 is_terminal=False,
114 encoding="utf-8",
115 )
116 assert options.height is None
117 render_options = options.update_height(12)
118 assert options.height is None
119 assert render_options.height == 12
120 assert render_options.max_height == 12
121
122
123def test_init() -> None:

Callers

nothing calls this directly

Calls 3

update_heightMethod · 0.95
ConsoleOptionsClass · 0.90
ConsoleDimensionsClass · 0.90

Tested by

no test coverage detected