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

Function test_box_substitute_for_same_box

tests/test_box.py:51–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50
51def test_box_substitute_for_same_box():
52 options = ConsoleOptions(
53 ConsoleDimensions(80, 25),
54 legacy_windows=False,
55 min_width=1,
56 max_width=100,
57 is_terminal=True,
58 encoding="utf-8",
59 max_height=25,
60 )
61
62 assert ROUNDED.substitute(options) == ROUNDED
63 assert MINIMAL_HEAVY_HEAD.substitute(options) == MINIMAL_HEAVY_HEAD
64 assert SIMPLE_HEAVY.substitute(options) == SIMPLE_HEAVY
65 assert HEAVY.substitute(options) == HEAVY
66 assert HEAVY_EDGE.substitute(options) == HEAVY_EDGE
67 assert HEAVY_HEAD.substitute(options) == HEAVY_HEAD
68
69
70def test_box_substitute_for_different_box_legacy_windows():

Callers

nothing calls this directly

Calls 3

ConsoleOptionsClass · 0.90
ConsoleDimensionsClass · 0.90
substituteMethod · 0.80

Tested by

no test coverage detected