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

Function test_validate_sketch_error

lib/matplotlib/tests/test_rcparams.py:650–654  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

648
649@pytest.mark.parametrize("value", [1, '1', '1 2 3'])
650def test_validate_sketch_error(value):
651 with pytest.raises(ValueError, match="scale, length, randomness"):
652 validate_sketch(value)
653 with pytest.raises(ValueError, match="scale, length, randomness"):
654 mpl.rcParams["path.sketch"] = value
655
656
657@pytest.mark.parametrize("value", ['1, 2, 3', '(1,2,3)'])

Callers

nothing calls this directly

Calls 1

validate_sketchFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…