MCPcopy
hub / github.com/ManimCommunity/manim / test_wait_invalid_duration

Function test_wait_invalid_duration

tests/module/animation/test_animation.py:33–36  ·  view source on GitHub ↗
(duration)

Source from the content-addressed store, hash-verified

31
32@pytest.mark.parametrize("duration", [0, -1])
33def 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])

Callers

nothing calls this directly

Calls 2

waitMethod · 0.95
SceneClass · 0.90

Tested by

no test coverage detected