mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
test: fix test_composition/test_animationgroup_calls_finish (#4581)
The function implements the class MyAnimation which inherits form Animation but did not implement the function interpolate_submobject, which by default raises a NotImplementedError exception
This commit is contained in:
parent
05c8e37ac7
commit
74b9925b11
1 changed files with 4 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from typing import Self
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
import pytest
|
||||
|
|
@ -192,6 +193,9 @@ def test_animationgroup_calls_finish():
|
|||
def finish(self):
|
||||
self.finished = True
|
||||
|
||||
def interpolate_submobject(self, *args) -> Self:
|
||||
return self
|
||||
|
||||
manager = Manager(Scene)
|
||||
scene = manager.scene
|
||||
sqr_animation = MyAnimation(Square())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue