(dry_run)
| 40 | |
| 41 | |
| 42 | def 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 | |
| 54 | def test_subcaption(dry_run): |