Skip to content

Commit fc36909

Browse files
committed
chore(tests): zoom example
1 parent 580da4a commit fc36909

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/test_slide.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ def construct(self) -> None:
5252
assert text not in self.mobjects
5353
assert bye in self.mobjects
5454

55+
@assert_construct
56+
class TestZoom(Slide):
57+
def construct(self) -> None:
58+
text = Text("Some text")
59+
bye = Text("Bye")
60+
61+
self.add(text)
62+
63+
assert text in self.mobjects
64+
assert bye not in self.mobjects
65+
66+
self.play(self.zoom([text], [bye]))
67+
68+
assert text not in self.mobjects
69+
assert bye in self.mobjects
70+
5571
@assert_construct
5672
class TestCanvas(Slide):
5773
def construct(self) -> None:

0 commit comments

Comments
 (0)