Test `seek()` throws correct exception when specifying in invalid seek value.
(
self, vs_type: ty.Callable[..., VideoStream], test_video: VideoParameters
)
| 323 | assert stream.frame_number == test_video.total_frames |
| 324 | |
| 325 | def test_seek_invalid( |
| 326 | self, vs_type: ty.Callable[..., VideoStream], test_video: VideoParameters |
| 327 | ): |
| 328 | """Test `seek()` throws correct exception when specifying in invalid seek value.""" |
| 329 | stream = vs_type(test_video.path) |
| 330 | |
| 331 | with pytest.raises(ValueError): |
| 332 | stream.seek(-1) |
| 333 | |
| 334 | with pytest.raises(ValueError): |
| 335 | stream.seek(-0.1) |
| 336 | |
| 337 | |
| 338 | # |