Skip to content

Commit acb27db

Browse files
authored
Added template for the use of set_test_scene into the test folder (#565)
1 parent b78e6b7 commit acb27db

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from manim import *
2+
from tests.helpers.graphical_units import set_test_scene
3+
4+
# Note: DO NOT COMMIT THIS FILE. The purpose of this template is to produce control data for graphical_units_data. As
5+
# soon as the test data is produced, please revert all changes you made to this file, so this template file will be
6+
# still available for others :)
7+
# More about graphical unit tests: https://github.com/ManimCommunity/manim/wiki/Testing#graphical-unit-test
8+
9+
10+
class YourClassHere(Scene):
11+
def construct(self):
12+
circle = Circle()
13+
self.play(Animation(circle))
14+
15+
16+
set_test_scene(
17+
YourClassHere, "<module_name>"
18+
) # <module_name> can be e.g. "geometry" or "movements"

0 commit comments

Comments
 (0)