(duration)
| 31 | |
| 32 | @pytest.mark.parametrize("duration", [0, -1]) |
| 33 | def test_wait_invalid_duration(duration): |
| 34 | test_scene = Scene() |
| 35 | with pytest.raises(ValueError, match="The duration must be a positive number."): |
| 36 | test_scene.wait(duration) |
| 37 | |
| 38 | |
| 39 | @pytest.mark.parametrize("frozen_frame", [False, True]) |