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:
Miguel Ángel Rodríguez Vidal 2026-02-09 22:00:41 +01:00 committed by GitHub
commit 74b9925b11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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())