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

Function test_scene_time

tests/module/scene/test_scene.py:42–51  ·  view source on GitHub ↗
(dry_run)

Source from the content-addressed store, hash-verified

40
41
42def test_scene_time(dry_run):
43 scene = Scene()
44 assert scene.time == 0
45 scene.wait(2)
46 assert scene.time == 2
47 scene.play(FadeIn(Circle()), run_time=0.5)
48 assert pytest.approx(scene.time) == 2.5
49 scene.renderer._original_skipping_status = True
50 scene.play(FadeIn(Square()), run_time=5) # this animation gets skipped.
51 assert pytest.approx(scene.time) == 7.5
52
53
54def test_subcaption(dry_run):

Callers

nothing calls this directly

Calls 6

waitMethod · 0.95
playMethod · 0.95
SceneClass · 0.90
FadeInClass · 0.90
CircleClass · 0.90
SquareClass · 0.90

Tested by

no test coverage detected