()
| 197 | |
| 198 | |
| 199 | def test_crop_invalid(): |
| 200 | sm = SceneManager() |
| 201 | sm.crop = None # type: ignore[assignment] |
| 202 | sm.crop = (0, 0, 0, 0) |
| 203 | sm.crop = (1, 1, 0, 0) |
| 204 | sm.crop = (0, 0, 1, 1) |
| 205 | with pytest.raises(TypeError): |
| 206 | sm.crop = 1 # type: ignore[assignment] |
| 207 | with pytest.raises(TypeError): |
| 208 | sm.crop = (1, 1) # type: ignore[assignment] |
| 209 | with pytest.raises(TypeError): |
| 210 | sm.crop = (1, 1, 1) # type: ignore[assignment] |
| 211 | with pytest.raises(ValueError): |
| 212 | sm.crop = (1, 1, 1, -1) |
nothing calls this directly
no test coverage detected