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

Function test_rule_align

tests/test_rule.py:37–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36
37def test_rule_align():
38 console = Console(width=16, file=io.StringIO(), legacy_windows=False, _environ={})
39 console.rule("foo")
40 console.rule("foo", align="left")
41 console.rule("foo", align="center")
42 console.rule("foo", align="right")
43 console.rule()
44 result = console.file.getvalue()
45 print(repr(result))
46 expected = "───── foo ──────\nfoo ────────────\n───── foo ──────\n──────────── foo\n────────────────\n"
47 assert result == expected
48
49
50def test_rule_cjk():

Callers

nothing calls this directly

Calls 3

ruleMethod · 0.95
ConsoleClass · 0.90
printFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…