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

Function test_set_console_title

tests/test_console.py:801–810  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

799
800
801def test_set_console_title() -> None:
802 console = Console(force_terminal=True, _environ={})
803 if console.legacy_windows:
804 return
805
806 with console.capture() as captured:
807 console.set_window_title("hello")
808
809 result = captured.get()
810 assert result == "\x1b]0;hello\x07"
811
812
813def test_update_screen() -> None:

Callers

nothing calls this directly

Calls 4

captureMethod · 0.95
set_window_titleMethod · 0.95
ConsoleClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected