()
| 896 | |
| 897 | |
| 898 | def test_collection_set_array(): |
| 899 | vals = [*range(10)] |
| 900 | |
| 901 | # Test set_array with list |
| 902 | c = Collection() |
| 903 | c.set_array(vals) |
| 904 | |
| 905 | # Test set_array with wrong dtype |
| 906 | with pytest.raises(TypeError, match="^Image data of dtype"): |
| 907 | c.set_array("wrong_input") |
| 908 | |
| 909 | # Test if array kwarg is copied |
| 910 | vals[5] = 45 |
| 911 | assert np.not_equal(vals, c.get_array()).any() |
| 912 | |
| 913 | |
| 914 | def test_blended_collection_autolim(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…