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

Function test_bad_align_legal

tests/test_align.py:10–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10def test_bad_align_legal():
11 # Legal
12 Align("foo", "left")
13 Align("foo", "center")
14 Align("foo", "right")
15
16 # illegal
17 with pytest.raises(ValueError):
18 Align("foo", None)
19 with pytest.raises(ValueError):
20 Align("foo", "middle")
21 with pytest.raises(ValueError):
22 Align("foo", "")
23 with pytest.raises(ValueError):
24 Align("foo", "LEFT")
25 with pytest.raises(ValueError):
26 Align("foo", vertical="somewhere")
27
28
29def test_repr():

Callers

nothing calls this directly

Calls 1

AlignClass · 0.90

Tested by

no test coverage detected