A community-maintained Python framework for creating mathematical animations.
creation of a test for add_fixed_in_frame_mobjects (#2301)
Lucas Ricci2d1d70fa8e88
diff --git a/tests/control_data/graphical_units_data/threed/AddFixedInFrameMobjects.npz b/tests/control_data/graphical_units_data/threed/AddFixedInFrameMobjects.npznew file mode 100644index 000000000..54d0d67bbBinary files /dev/null and b/tests/control_data/graphical_units_data/threed/AddFixedInFrameMobjects.npz differdiff --git a/tests/test_graphical_units/test_threed.py b/tests/test_graphical_units/test_threed.pyindex a7f8ef266..d9c66730c 100644--- a/tests/test_graphical_units/test_threed.py+++ b/tests/test_graphical_units/test_threed.py@@ -4,6 +4,13 @@ from tests.test_graphical_units.testing.frames_comparison import frames_comparis__module_test__ = "threed"+@frames_comparison(base_scene=ThreeDScene)+def test_AddFixedInFrameMobjects(scene):+ scene.set_camera_orientation(phi=75 * DEGREES, theta=-45 * DEGREES)+ text = Tex("This is a 3D tex")+ scene.add_fixed_in_frame_mobjects(text)++@frames_comparison(base_scene=ThreeDScene)def test_Cube(scene):scene.add(Cube())