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

Function test_get_row

tests/test_box.py:32–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31
32def test_get_row():
33 head_row = DOUBLE.get_row(widths=[3, 2, 1], level="head")
34 assert head_row == "╠═══╬══╬═╣"
35
36 row = ASCII.get_row(widths=[1, 2, 3], level="row")
37 assert row == "|-+--+---|"
38
39 foot_row = ROUNDED.get_row(widths=[2, 1, 3], level="foot")
40 assert foot_row == "├──┼─┼───┤"
41
42 with pytest.raises(ValueError):
43 ROUNDED.get_row(widths=[1, 2, 3], level="FOO")
44
45
46def test_get_bottom():

Callers

nothing calls this directly

Calls 1

get_rowMethod · 0.80

Tested by

no test coverage detected