chore(tests): zoom example

This commit is contained in:
Jérome Eertmans
2023-08-04 09:54:42 +02:00
parent 580da4a885
commit fc36909688

View File

@ -52,6 +52,22 @@ class TestSlide:
assert text not in self.mobjects
assert bye in self.mobjects
@assert_construct
class TestZoom(Slide):
def construct(self) -> None:
text = Text("Some text")
bye = Text("Bye")
self.add(text)
assert text in self.mobjects
assert bye not in self.mobjects
self.play(self.zoom([text], [bye]))
assert text not in self.mobjects
assert bye in self.mobjects
@assert_construct
class TestCanvas(Slide):
def construct(self) -> None: