MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_invalid_rotation_values

Function test_invalid_rotation_values

lib/matplotlib/tests/test_text.py:799–803  ·  view source on GitHub ↗
(rotation)

Source from the content-addressed store, hash-verified

797
798@pytest.mark.parametrize('rotation', ['invalid string', [90]])
799def test_invalid_rotation_values(rotation):
800 with pytest.raises(
801 ValueError,
802 match=("rotation must be 'vertical', 'horizontal' or a number")):
803 Text(0, 0, 'foo', rotation=rotation)
804
805
806def test_invalid_color():

Callers

nothing calls this directly

Calls 1

TextClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…