()
| 327 | |
| 328 | |
| 329 | def test_set_alpha(): |
| 330 | art = martist.Artist() |
| 331 | with pytest.raises(TypeError, match='^alpha must be numeric or None'): |
| 332 | art.set_alpha('string') |
| 333 | with pytest.raises(TypeError, match='^alpha must be numeric or None'): |
| 334 | art.set_alpha([1, 2, 3]) |
| 335 | with pytest.raises(ValueError, match="outside 0-1 range"): |
| 336 | art.set_alpha(1.1) |
| 337 | with pytest.raises(ValueError, match="outside 0-1 range"): |
| 338 | art.set_alpha(np.nan) |
| 339 | |
| 340 | |
| 341 | def test_set_alpha_for_array(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…