MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / test_crop_invalid

Function test_crop_invalid

tests/test_scene_manager.py:199–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197
198
199def 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)

Callers

nothing calls this directly

Calls 1

SceneManagerClass · 0.90

Tested by

no test coverage detected