Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Made `frames_comparsion` testing utility a proper module of the library (#2346)

Benjamin Hackl044dcad53f2f
diff --git a/docs/source/contributing/testing.rst b/docs/source/contributing/testing.rst
index 6e1b685e6..7f60a5207 100644
--- a/docs/source/contributing/testing.rst
+++ b/docs/source/contributing/testing.rst
@@ -177,7 +177,7 @@ Here's an example in ``test_geometry.py``:
.. code:: python
from manim import *
- from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+ from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "geometry"
diff --git a/manim/utils/testing/__init__.py b/manim/utils/testing/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/test_graphical_units/testing/_frames_testers.py b/manim/utils/testing/_frames_testers.py
similarity index 100%
rename from tests/test_graphical_units/testing/_frames_testers.py
rename to manim/utils/testing/_frames_testers.py
diff --git a/tests/test_graphical_units/testing/_show_diff.py b/manim/utils/testing/_show_diff.py
similarity index 100%
rename from tests/test_graphical_units/testing/_show_diff.py
rename to manim/utils/testing/_show_diff.py
diff --git a/tests/test_graphical_units/testing/_test_class_makers.py b/manim/utils/testing/_test_class_makers.py
similarity index 100%
rename from tests/test_graphical_units/testing/_test_class_makers.py
rename to manim/utils/testing/_test_class_makers.py
diff --git a/tests/test_graphical_units/testing/config_graphical_tests_monoframe.cfg b/manim/utils/testing/config_graphical_tests_monoframe.cfg
similarity index 100%
rename from tests/test_graphical_units/testing/config_graphical_tests_monoframe.cfg
rename to manim/utils/testing/config_graphical_tests_monoframe.cfg
diff --git a/tests/test_graphical_units/testing/config_graphical_tests_multiframes.cfg b/manim/utils/testing/config_graphical_tests_multiframes.cfg
similarity index 100%
rename from tests/test_graphical_units/testing/config_graphical_tests_multiframes.cfg
rename to manim/utils/testing/config_graphical_tests_multiframes.cfg
diff --git a/tests/test_graphical_units/testing/frames_comparison.py b/manim/utils/testing/frames_comparison.py
similarity index 93%
rename from tests/test_graphical_units/testing/frames_comparison.py
rename to manim/utils/testing/frames_comparison.py
index 83607f054..7d38965e2 100644
--- a/tests/test_graphical_units/testing/frames_comparison.py
+++ b/manim/utils/testing/frames_comparison.py
@@ -1,7 +1,7 @@
import functools
import inspect
from pathlib import Path
-from typing import Callable, Tuple, Type
+from typing import Callable, Optional, Tuple, Type
from _pytest.fixtures import FixtureRequest
@@ -103,8 +103,13 @@ def frames_comparison(
config_tests["dry_run"] = True
setting_test = request.config.getoption("--set_test")
+ try:
+ test_file_path = tested_scene_construct.__globals__["__file__"]
+ except:
+ test_file_path = None
real_test = _make_test_comparing_frames(
file_path=_control_data_path(
+ test_file_path,
module_name,
test_name_with_param,
setting_test,
@@ -215,8 +220,16 @@ def _make_test_comparing_frames(
return real_test
-def _control_data_path(module_name: str, test_name: str, setting_test: bool) -> Path:
- path = PATH_CONTROL_DATA / module_name
+def _control_data_path(
+ test_file_path: Optional[str], module_name: str, test_name: str, setting_test: bool
+) -> Path:
+ if test_file_path is None:
+ # For some reason, path to test file containing @frames_comparison could not
+ # be determined. Use local directory instead.
+ test_file_path = __file__
+
+ path = Path(test_file_path).absolute().parent / "control_data" / module_name
+
if setting_test:
# Create the directory if not existing.
path.mkdir(exist_ok=True)
diff --git a/tests/test_boolops/test_boolops.py b/tests/test_boolean_ops.py
similarity index 56%
rename from tests/test_boolops/test_boolops.py
rename to tests/test_boolean_ops.py
index c7883ec68..29b76b577 100644
--- a/tests/test_boolops/test_boolops.py
+++ b/tests/test_boolean_ops.py
@@ -1,11 +1,8 @@
import numpy as np
import pytest
-from manim import *
-
-# not exported by default, so directly import
+from manim import Circle, Square
from manim.mobject.boolean_ops import _BooleanOps
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
@pytest.mark.parametrize(
@@ -57,48 +54,3 @@ def test_vmobject_to_skia_path_and_inverse(test_input):
new_vmobject = a._convert_skia_path_to_vmobject(path)
# for some reason there is an extra 4 points in new vmobject than original
assert np.where(np.isclose(new_vmobject.points[:-4], test_input.points))
-
-
-__module_test__ = "boolean_ops"
-
-
-@frames_comparison()
-def test_union(scene):
- a = Square()
- b = Circle().move_to([0.2, 0.2, 0.0])
- c = Rectangle()
- un = Union(a, b, c).next_to(b)
- scene.add(a, b, c, un)
-
-
-@frames_comparison()
-def test_intersection(scene):
- a = Square()
- b = Circle().move_to([0.3, 0.3, 0.0])
- i = Intersection(a, b).next_to(b)
- scene.add(a, b, i)
-
-
-@frames_comparison()
-def test_difference(scene):
- a = Square()
- b = Circle().move_to([0.2, 0.3, 0.0])
- di = Difference(a, b).next_to(b)
- scene.add(a, b, di)
-
-
-@frames_comparison()
-def test_exclusion(scene):
- a = Square()
- b = Circle().move_to([0.3, 0.2, 0.0])
- ex = Exclusion(a, b).next_to(a)
- scene.add(a, b, ex)
-
-
-@frames_comparison()
-def test_intersection_3_mobjects(scene):
- a = Square()
- b = Circle().move_to([0.2, 0.2, 0])
- c = Triangle()
- i = Intersection(a, b, c, fill_opacity=0.5, color=BLUE)
- scene.add(a, b, c, i)
diff --git a/tests/control_data/graphical_units_data/boolean_ops/difference.npz b/tests/test_graphical_units/control_data/boolean_ops/difference.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/boolean_ops/difference.npz
rename to tests/test_graphical_units/control_data/boolean_ops/difference.npz
diff --git a/tests/control_data/graphical_units_data/boolean_ops/exclusion.npz b/tests/test_graphical_units/control_data/boolean_ops/exclusion.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/boolean_ops/exclusion.npz
rename to tests/test_graphical_units/control_data/boolean_ops/exclusion.npz
diff --git a/tests/control_data/graphical_units_data/boolean_ops/intersection.npz b/tests/test_graphical_units/control_data/boolean_ops/intersection.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/boolean_ops/intersection.npz
rename to tests/test_graphical_units/control_data/boolean_ops/intersection.npz
diff --git a/tests/control_data/graphical_units_data/boolean_ops/intersection_3_mobjects.npz b/tests/test_graphical_units/control_data/boolean_ops/intersection_3_mobjects.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/boolean_ops/intersection_3_mobjects.npz
rename to tests/test_graphical_units/control_data/boolean_ops/intersection_3_mobjects.npz
diff --git a/tests/control_data/graphical_units_data/boolean_ops/union.npz b/tests/test_graphical_units/control_data/boolean_ops/union.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/boolean_ops/union.npz
rename to tests/test_graphical_units/control_data/boolean_ops/union.npz
diff --git a/tests/control_data/graphical_units_data/brace/arcBrace.npz b/tests/test_graphical_units/control_data/brace/arcBrace.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/brace/arcBrace.npz
rename to tests/test_graphical_units/control_data/brace/arcBrace.npz
diff --git a/tests/control_data/graphical_units_data/brace/braceTip.npz b/tests/test_graphical_units/control_data/brace/braceTip.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/brace/braceTip.npz
rename to tests/test_graphical_units/control_data/brace/braceTip.npz
diff --git a/tests/control_data/graphical_units_data/brace/brace_sharpness.npz b/tests/test_graphical_units/control_data/brace/brace_sharpness.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/brace/brace_sharpness.npz
rename to tests/test_graphical_units/control_data/brace/brace_sharpness.npz
diff --git a/tests/control_data/graphical_units_data/composition/animationgroup_is_passing_remover_to_animations.npz b/tests/test_graphical_units/control_data/composition/animationgroup_is_passing_remover_to_animations.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/composition/animationgroup_is_passing_remover_to_animations.npz
rename to tests/test_graphical_units/control_data/composition/animationgroup_is_passing_remover_to_animations.npz
diff --git a/tests/control_data/graphical_units_data/composition/animationgroup_is_passing_remover_to_nested_animationgroups.npz b/tests/test_graphical_units/control_data/composition/animationgroup_is_passing_remover_to_nested_animationgroups.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/composition/animationgroup_is_passing_remover_to_nested_animationgroups.npz
rename to tests/test_graphical_units/control_data/composition/animationgroup_is_passing_remover_to_nested_animationgroups.npz
diff --git a/tests/control_data/graphical_units_data/coordinate_system/implicit_graph.npz b/tests/test_graphical_units/control_data/coordinate_system/implicit_graph.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/coordinate_system/implicit_graph.npz
rename to tests/test_graphical_units/control_data/coordinate_system/implicit_graph.npz
diff --git a/tests/control_data/graphical_units_data/coordinate_system/line_graph.npz b/tests/test_graphical_units/control_data/coordinate_system/line_graph.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/coordinate_system/line_graph.npz
rename to tests/test_graphical_units/control_data/coordinate_system/line_graph.npz
diff --git a/tests/control_data/graphical_units_data/coordinate_system/number_plane.npz b/tests/test_graphical_units/control_data/coordinate_system/number_plane.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/coordinate_system/number_plane.npz
rename to tests/test_graphical_units/control_data/coordinate_system/number_plane.npz
diff --git a/tests/control_data/graphical_units_data/coordinate_system/number_plane_log.npz b/tests/test_graphical_units/control_data/coordinate_system/number_plane_log.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/coordinate_system/number_plane_log.npz
rename to tests/test_graphical_units/control_data/coordinate_system/number_plane_log.npz
diff --git a/tests/control_data/graphical_units_data/coordinate_systems/NumberPlaneTest.npz b/tests/test_graphical_units/control_data/coordinate_systems/NumberPlaneTest.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/coordinate_systems/NumberPlaneTest.npz
rename to tests/test_graphical_units/control_data/coordinate_systems/NumberPlaneTest.npz
diff --git a/tests/control_data/graphical_units_data/creation/DrawBorderThenFill.npz b/tests/test_graphical_units/control_data/creation/DrawBorderThenFill.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/creation/DrawBorderThenFill.npz
rename to tests/test_graphical_units/control_data/creation/DrawBorderThenFill.npz
diff --git a/tests/control_data/graphical_units_data/creation/FadeIn.npz b/tests/test_graphical_units/control_data/creation/FadeIn.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/creation/FadeIn.npz
rename to tests/test_graphical_units/control_data/creation/FadeIn.npz
diff --git a/tests/control_data/graphical_units_data/creation/FadeOut.npz b/tests/test_graphical_units/control_data/creation/FadeOut.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/creation/FadeOut.npz
rename to tests/test_graphical_units/control_data/creation/FadeOut.npz
diff --git a/tests/control_data/graphical_units_data/creation/GrowFromCenter.npz b/tests/test_graphical_units/control_data/creation/GrowFromCenter.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/creation/GrowFromCenter.npz
rename to tests/test_graphical_units/control_data/creation/GrowFromCenter.npz
diff --git a/tests/control_data/graphical_units_data/creation/GrowFromEdge.npz b/tests/test_graphical_units/control_data/creation/GrowFromEdge.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/creation/GrowFromEdge.npz
rename to tests/test_graphical_units/control_data/creation/GrowFromEdge.npz
diff --git a/tests/control_data/graphical_units_data/creation/GrowFromPoint.npz b/tests/test_graphical_units/control_data/creation/GrowFromPoint.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/creation/GrowFromPoint.npz
rename to tests/test_graphical_units/control_data/creation/GrowFromPoint.npz
diff --git a/tests/control_data/graphical_units_data/creation/ShrinkToCenter.npz b/tests/test_graphical_units/control_data/creation/ShrinkToCenter.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/creation/ShrinkToCenter.npz
rename to tests/test_graphical_units/control_data/creation/ShrinkToCenter.npz
diff --git a/tests/control_data/graphical_units_data/creation/SpinInFromNothing.npz b/tests/test_graphical_units/control_data/creation/SpinInFromNothing.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/creation/SpinInFromNothing.npz
rename to tests/test_graphical_units/control_data/creation/SpinInFromNothing.npz
diff --git a/tests/control_data/graphical_units_data/creation/create.npz b/tests/test_graphical_units/control_data/creation/create.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/creation/create.npz
rename to tests/test_graphical_units/control_data/creation/create.npz
diff --git a/tests/control_data/graphical_units_data/creation/uncreate.npz b/tests/test_graphical_units/control_data/creation/uncreate.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/creation/uncreate.npz
rename to tests/test_graphical_units/control_data/creation/uncreate.npz
diff --git a/tests/control_data/graphical_units_data/functions/FunctionGraph.npz b/tests/test_graphical_units/control_data/functions/FunctionGraph.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/functions/FunctionGraph.npz
rename to tests/test_graphical_units/control_data/functions/FunctionGraph.npz
diff --git a/tests/control_data/graphical_units_data/functions/ImplicitFunction.npz b/tests/test_graphical_units/control_data/functions/ImplicitFunction.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/functions/ImplicitFunction.npz
rename to tests/test_graphical_units/control_data/functions/ImplicitFunction.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Angle.npz b/tests/test_graphical_units/control_data/geometry/Angle.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Angle.npz
rename to tests/test_graphical_units/control_data/geometry/Angle.npz
diff --git a/tests/control_data/graphical_units_data/geometry/AngledArrowTip.npz b/tests/test_graphical_units/control_data/geometry/AngledArrowTip.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/AngledArrowTip.npz
rename to tests/test_graphical_units/control_data/geometry/AngledArrowTip.npz
diff --git a/tests/control_data/graphical_units_data/geometry/AnnotationDot.npz b/tests/test_graphical_units/control_data/geometry/AnnotationDot.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/AnnotationDot.npz
rename to tests/test_graphical_units/control_data/geometry/AnnotationDot.npz
diff --git a/tests/control_data/graphical_units_data/geometry/AnnularSector.npz b/tests/test_graphical_units/control_data/geometry/AnnularSector.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/AnnularSector.npz
rename to tests/test_graphical_units/control_data/geometry/AnnularSector.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Annulus.npz b/tests/test_graphical_units/control_data/geometry/Annulus.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Annulus.npz
rename to tests/test_graphical_units/control_data/geometry/Annulus.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Arc.npz b/tests/test_graphical_units/control_data/geometry/Arc.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Arc.npz
rename to tests/test_graphical_units/control_data/geometry/Arc.npz
diff --git a/tests/control_data/graphical_units_data/geometry/ArcBetweenPoints.npz b/tests/test_graphical_units/control_data/geometry/ArcBetweenPoints.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/ArcBetweenPoints.npz
rename to tests/test_graphical_units/control_data/geometry/ArcBetweenPoints.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Arrange.npz b/tests/test_graphical_units/control_data/geometry/Arrange.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Arrange.npz
rename to tests/test_graphical_units/control_data/geometry/Arrange.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Circle.npz b/tests/test_graphical_units/control_data/geometry/Circle.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Circle.npz
rename to tests/test_graphical_units/control_data/geometry/Circle.npz
diff --git a/tests/control_data/graphical_units_data/geometry/CirclePoints.npz b/tests/test_graphical_units/control_data/geometry/CirclePoints.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/CirclePoints.npz
rename to tests/test_graphical_units/control_data/geometry/CirclePoints.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Coordinates.npz b/tests/test_graphical_units/control_data/geometry/Coordinates.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Coordinates.npz
rename to tests/test_graphical_units/control_data/geometry/Coordinates.npz
diff --git a/tests/control_data/graphical_units_data/geometry/CurvedArrow.npz b/tests/test_graphical_units/control_data/geometry/CurvedArrow.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/CurvedArrow.npz
rename to tests/test_graphical_units/control_data/geometry/CurvedArrow.npz
diff --git a/tests/control_data/graphical_units_data/geometry/CurvedArrowCustomTip.npz b/tests/test_graphical_units/control_data/geometry/CurvedArrowCustomTip.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/CurvedArrowCustomTip.npz
rename to tests/test_graphical_units/control_data/geometry/CurvedArrowCustomTip.npz
diff --git a/tests/control_data/graphical_units_data/geometry/CustomDoubleArrow.npz b/tests/test_graphical_units/control_data/geometry/CustomDoubleArrow.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/CustomDoubleArrow.npz
rename to tests/test_graphical_units/control_data/geometry/CustomDoubleArrow.npz
diff --git a/tests/control_data/graphical_units_data/geometry/DashedVMobject.npz b/tests/test_graphical_units/control_data/geometry/DashedVMobject.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/DashedVMobject.npz
rename to tests/test_graphical_units/control_data/geometry/DashedVMobject.npz
diff --git a/tests/control_data/graphical_units_data/geometry/DashedVMobjectTest.npz b/tests/test_graphical_units/control_data/geometry/DashedVMobjectTest.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/DashedVMobjectTest.npz
rename to tests/test_graphical_units/control_data/geometry/DashedVMobjectTest.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Dot.npz b/tests/test_graphical_units/control_data/geometry/Dot.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Dot.npz
rename to tests/test_graphical_units/control_data/geometry/Dot.npz
diff --git a/tests/control_data/graphical_units_data/geometry/DoubleArrow.npz b/tests/test_graphical_units/control_data/geometry/DoubleArrow.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/DoubleArrow.npz
rename to tests/test_graphical_units/control_data/geometry/DoubleArrow.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Elbow.npz b/tests/test_graphical_units/control_data/geometry/Elbow.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Elbow.npz
rename to tests/test_graphical_units/control_data/geometry/Elbow.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Ellipse.npz b/tests/test_graphical_units/control_data/geometry/Ellipse.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Ellipse.npz
rename to tests/test_graphical_units/control_data/geometry/Ellipse.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Line.npz b/tests/test_graphical_units/control_data/geometry/Line.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Line.npz
rename to tests/test_graphical_units/control_data/geometry/Line.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Polygon.npz b/tests/test_graphical_units/control_data/geometry/Polygon.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Polygon.npz
rename to tests/test_graphical_units/control_data/geometry/Polygon.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Polygram.npz b/tests/test_graphical_units/control_data/geometry/Polygram.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Polygram.npz
rename to tests/test_graphical_units/control_data/geometry/Polygram.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Rectangle.npz b/tests/test_graphical_units/control_data/geometry/Rectangle.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Rectangle.npz
rename to tests/test_graphical_units/control_data/geometry/Rectangle.npz
diff --git a/tests/control_data/graphical_units_data/geometry/RegularPolygram.npz b/tests/test_graphical_units/control_data/geometry/RegularPolygram.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/RegularPolygram.npz
rename to tests/test_graphical_units/control_data/geometry/RegularPolygram.npz
diff --git a/tests/control_data/graphical_units_data/geometry/RightAngle.npz b/tests/test_graphical_units/control_data/geometry/RightAngle.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/RightAngle.npz
rename to tests/test_graphical_units/control_data/geometry/RightAngle.npz
diff --git a/tests/control_data/graphical_units_data/geometry/RoundedRectangle.npz b/tests/test_graphical_units/control_data/geometry/RoundedRectangle.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/RoundedRectangle.npz
rename to tests/test_graphical_units/control_data/geometry/RoundedRectangle.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Sector.npz b/tests/test_graphical_units/control_data/geometry/Sector.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Sector.npz
rename to tests/test_graphical_units/control_data/geometry/Sector.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Star.npz b/tests/test_graphical_units/control_data/geometry/Star.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Star.npz
rename to tests/test_graphical_units/control_data/geometry/Star.npz
diff --git a/tests/control_data/graphical_units_data/geometry/Vector.npz b/tests/test_graphical_units/control_data/geometry/Vector.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/Vector.npz
rename to tests/test_graphical_units/control_data/geometry/Vector.npz
diff --git a/tests/control_data/graphical_units_data/geometry/ZIndex.npz b/tests/test_graphical_units/control_data/geometry/ZIndex.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/geometry/ZIndex.npz
rename to tests/test_graphical_units/control_data/geometry/ZIndex.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/Arcs01.npz b/tests/test_graphical_units/control_data/img_and_svg/Arcs01.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/Arcs01.npz
rename to tests/test_graphical_units/control_data/img_and_svg/Arcs01.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/Arcs02.npz b/tests/test_graphical_units/control_data/img_and_svg/Arcs02.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/Arcs02.npz
rename to tests/test_graphical_units/control_data/img_and_svg/Arcs02.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/BrachistochroneCurve.npz b/tests/test_graphical_units/control_data/img_and_svg/BrachistochroneCurve.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/BrachistochroneCurve.npz
rename to tests/test_graphical_units/control_data/img_and_svg/BrachistochroneCurve.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/ContiguousUSMap.npz b/tests/test_graphical_units/control_data/img_and_svg/ContiguousUSMap.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/ContiguousUSMap.npz
rename to tests/test_graphical_units/control_data/img_and_svg/ContiguousUSMap.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/CubicAndLineto.npz b/tests/test_graphical_units/control_data/img_and_svg/CubicAndLineto.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/CubicAndLineto.npz
rename to tests/test_graphical_units/control_data/img_and_svg/CubicAndLineto.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/CubicPath.npz b/tests/test_graphical_units/control_data/img_and_svg/CubicPath.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/CubicPath.npz
rename to tests/test_graphical_units/control_data/img_and_svg/CubicPath.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/DesmosGraph1.npz b/tests/test_graphical_units/control_data/img_and_svg/DesmosGraph1.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/DesmosGraph1.npz
rename to tests/test_graphical_units/control_data/img_and_svg/DesmosGraph1.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/HalfEllipse.npz b/tests/test_graphical_units/control_data/img_and_svg/HalfEllipse.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/HalfEllipse.npz
rename to tests/test_graphical_units/control_data/img_and_svg/HalfEllipse.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/Heart.npz b/tests/test_graphical_units/control_data/img_and_svg/Heart.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/Heart.npz
rename to tests/test_graphical_units/control_data/img_and_svg/Heart.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/ImageInterpolation.npz b/tests/test_graphical_units/control_data/img_and_svg/ImageInterpolation.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/ImageInterpolation.npz
rename to tests/test_graphical_units/control_data/img_and_svg/ImageInterpolation.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/ImageMobject.npz b/tests/test_graphical_units/control_data/img_and_svg/ImageMobject.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/ImageMobject.npz
rename to tests/test_graphical_units/control_data/img_and_svg/ImageMobject.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/Inheritance.npz b/tests/test_graphical_units/control_data/img_and_svg/Inheritance.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/Inheritance.npz
rename to tests/test_graphical_units/control_data/img_and_svg/Inheritance.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/Line.npz b/tests/test_graphical_units/control_data/img_and_svg/Line.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/Line.npz
rename to tests/test_graphical_units/control_data/img_and_svg/Line.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/ManimLogo.npz b/tests/test_graphical_units/control_data/img_and_svg/ManimLogo.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/ManimLogo.npz
rename to tests/test_graphical_units/control_data/img_and_svg/ManimLogo.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/MatrixTransform.npz b/tests/test_graphical_units/control_data/img_and_svg/MatrixTransform.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/MatrixTransform.npz
rename to tests/test_graphical_units/control_data/img_and_svg/MatrixTransform.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/MultiPartPath.npz b/tests/test_graphical_units/control_data/img_and_svg/MultiPartPath.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/MultiPartPath.npz
rename to tests/test_graphical_units/control_data/img_and_svg/MultiPartPath.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/MultipleTransform.npz b/tests/test_graphical_units/control_data/img_and_svg/MultipleTransform.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/MultipleTransform.npz
rename to tests/test_graphical_units/control_data/img_and_svg/MultipleTransform.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/Penrose.npz b/tests/test_graphical_units/control_data/img_and_svg/Penrose.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/Penrose.npz
rename to tests/test_graphical_units/control_data/img_and_svg/Penrose.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/PixelizedText.npz b/tests/test_graphical_units/control_data/img_and_svg/PixelizedText.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/PixelizedText.npz
rename to tests/test_graphical_units/control_data/img_and_svg/PixelizedText.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/QuadraticPath.npz b/tests/test_graphical_units/control_data/img_and_svg/QuadraticPath.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/QuadraticPath.npz
rename to tests/test_graphical_units/control_data/img_and_svg/QuadraticPath.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/Rhomboid.npz b/tests/test_graphical_units/control_data/img_and_svg/Rhomboid.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/Rhomboid.npz
rename to tests/test_graphical_units/control_data/img_and_svg/Rhomboid.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/RotateTransform.npz b/tests/test_graphical_units/control_data/img_and_svg/RotateTransform.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/RotateTransform.npz
rename to tests/test_graphical_units/control_data/img_and_svg/RotateTransform.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/ScaleTransform.npz b/tests/test_graphical_units/control_data/img_and_svg/ScaleTransform.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/ScaleTransform.npz
rename to tests/test_graphical_units/control_data/img_and_svg/ScaleTransform.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/SingleUSState.npz b/tests/test_graphical_units/control_data/img_and_svg/SingleUSState.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/SingleUSState.npz
rename to tests/test_graphical_units/control_data/img_and_svg/SingleUSState.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/SkewXTransform.npz b/tests/test_graphical_units/control_data/img_and_svg/SkewXTransform.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/SkewXTransform.npz
rename to tests/test_graphical_units/control_data/img_and_svg/SkewXTransform.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/SkewYTransform.npz b/tests/test_graphical_units/control_data/img_and_svg/SkewYTransform.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/SkewYTransform.npz
rename to tests/test_graphical_units/control_data/img_and_svg/SkewYTransform.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/SmoothCurves.npz b/tests/test_graphical_units/control_data/img_and_svg/SmoothCurves.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/SmoothCurves.npz
rename to tests/test_graphical_units/control_data/img_and_svg/SmoothCurves.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/TranslateTransform.npz b/tests/test_graphical_units/control_data/img_and_svg/TranslateTransform.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/TranslateTransform.npz
rename to tests/test_graphical_units/control_data/img_and_svg/TranslateTransform.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/UKFlag.npz b/tests/test_graphical_units/control_data/img_and_svg/UKFlag.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/UKFlag.npz
rename to tests/test_graphical_units/control_data/img_and_svg/UKFlag.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/UseTagInheritance.npz b/tests/test_graphical_units/control_data/img_and_svg/UseTagInheritance.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/UseTagInheritance.npz
rename to tests/test_graphical_units/control_data/img_and_svg/UseTagInheritance.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/VideoIcon.npz b/tests/test_graphical_units/control_data/img_and_svg/VideoIcon.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/VideoIcon.npz
rename to tests/test_graphical_units/control_data/img_and_svg/VideoIcon.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/WatchTheDecimals.npz b/tests/test_graphical_units/control_data/img_and_svg/WatchTheDecimals.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/WatchTheDecimals.npz
rename to tests/test_graphical_units/control_data/img_and_svg/WatchTheDecimals.npz
diff --git a/tests/control_data/graphical_units_data/img_and_svg/WeightSVG.npz b/tests/test_graphical_units/control_data/img_and_svg/WeightSVG.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/img_and_svg/WeightSVG.npz
rename to tests/test_graphical_units/control_data/img_and_svg/WeightSVG.npz
diff --git a/tests/control_data/graphical_units_data/indication/ApplyWave.npz b/tests/test_graphical_units/control_data/indication/ApplyWave.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/indication/ApplyWave.npz
rename to tests/test_graphical_units/control_data/indication/ApplyWave.npz
diff --git a/tests/control_data/graphical_units_data/indication/Circumscribe.npz b/tests/test_graphical_units/control_data/indication/Circumscribe.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/indication/Circumscribe.npz
rename to tests/test_graphical_units/control_data/indication/Circumscribe.npz
diff --git a/tests/control_data/graphical_units_data/indication/Flash.npz b/tests/test_graphical_units/control_data/indication/Flash.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/indication/Flash.npz
rename to tests/test_graphical_units/control_data/indication/Flash.npz
diff --git a/tests/control_data/graphical_units_data/indication/FocusOn.npz b/tests/test_graphical_units/control_data/indication/FocusOn.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/indication/FocusOn.npz
rename to tests/test_graphical_units/control_data/indication/FocusOn.npz
diff --git a/tests/control_data/graphical_units_data/indication/Indicate.npz b/tests/test_graphical_units/control_data/indication/Indicate.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/indication/Indicate.npz
rename to tests/test_graphical_units/control_data/indication/Indicate.npz
diff --git a/tests/control_data/graphical_units_data/indication/ShowCreationThenFadeOut.npz b/tests/test_graphical_units/control_data/indication/ShowCreationThenFadeOut.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/indication/ShowCreationThenFadeOut.npz
rename to tests/test_graphical_units/control_data/indication/ShowCreationThenFadeOut.npz
diff --git a/tests/control_data/graphical_units_data/indication/ShowPassingFlash.npz b/tests/test_graphical_units/control_data/indication/ShowPassingFlash.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/indication/ShowPassingFlash.npz
rename to tests/test_graphical_units/control_data/indication/ShowPassingFlash.npz
diff --git a/tests/control_data/graphical_units_data/indication/Wiggle.npz b/tests/test_graphical_units/control_data/indication/Wiggle.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/indication/Wiggle.npz
rename to tests/test_graphical_units/control_data/indication/Wiggle.npz
diff --git a/tests/control_data/graphical_units_data/mobjects/PointCloudDot.npz b/tests/test_graphical_units/control_data/mobjects/PointCloudDot.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/mobjects/PointCloudDot.npz
rename to tests/test_graphical_units/control_data/mobjects/PointCloudDot.npz
diff --git a/tests/control_data/graphical_units_data/mobjects/become.npz b/tests/test_graphical_units/control_data/mobjects/become.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/mobjects/become.npz
rename to tests/test_graphical_units/control_data/mobjects/become.npz
diff --git a/tests/control_data/graphical_units_data/modifier_methods/Gradient.npz b/tests/test_graphical_units/control_data/modifier_methods/Gradient.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/modifier_methods/Gradient.npz
rename to tests/test_graphical_units/control_data/modifier_methods/Gradient.npz
diff --git a/tests/control_data/graphical_units_data/modifier_methods/GradientRotation.npz b/tests/test_graphical_units/control_data/modifier_methods/GradientRotation.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/modifier_methods/GradientRotation.npz
rename to tests/test_graphical_units/control_data/modifier_methods/GradientRotation.npz
diff --git a/tests/control_data/graphical_units_data/movements/Homotopy.npz b/tests/test_graphical_units/control_data/movements/Homotopy.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/movements/Homotopy.npz
rename to tests/test_graphical_units/control_data/movements/Homotopy.npz
diff --git a/tests/control_data/graphical_units_data/movements/MoveAlongPath.npz b/tests/test_graphical_units/control_data/movements/MoveAlongPath.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/movements/MoveAlongPath.npz
rename to tests/test_graphical_units/control_data/movements/MoveAlongPath.npz
diff --git a/tests/control_data/graphical_units_data/movements/MoveTo.npz b/tests/test_graphical_units/control_data/movements/MoveTo.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/movements/MoveTo.npz
rename to tests/test_graphical_units/control_data/movements/MoveTo.npz
diff --git a/tests/control_data/graphical_units_data/movements/PhaseFlow.npz b/tests/test_graphical_units/control_data/movements/PhaseFlow.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/movements/PhaseFlow.npz
rename to tests/test_graphical_units/control_data/movements/PhaseFlow.npz
diff --git a/tests/control_data/graphical_units_data/movements/Rotate.npz b/tests/test_graphical_units/control_data/movements/Rotate.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/movements/Rotate.npz
rename to tests/test_graphical_units/control_data/movements/Rotate.npz
diff --git a/tests/control_data/graphical_units_data/movements/Shift.npz b/tests/test_graphical_units/control_data/movements/Shift.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/movements/Shift.npz
rename to tests/test_graphical_units/control_data/movements/Shift.npz
diff --git a/tests/control_data/graphical_units_data/numbers/set_value_with_updaters.npz b/tests/test_graphical_units/control_data/numbers/set_value_with_updaters.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/numbers/set_value_with_updaters.npz
rename to tests/test_graphical_units/control_data/numbers/set_value_with_updaters.npz
diff --git a/tests/control_data/graphical_units_data/opengl/Circle.npz b/tests/test_graphical_units/control_data/opengl/Circle.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/opengl/Circle.npz
rename to tests/test_graphical_units/control_data/opengl/Circle.npz
diff --git a/tests/control_data/graphical_units_data/plot/PlotFunctions.npz b/tests/test_graphical_units/control_data/plot/PlotFunctions.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/PlotFunctions.npz
rename to tests/test_graphical_units/control_data/plot/PlotFunctions.npz
diff --git a/tests/control_data/graphical_units_data/plot/axes.npz b/tests/test_graphical_units/control_data/plot/axes.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/axes.npz
rename to tests/test_graphical_units/control_data/plot/axes.npz
diff --git a/tests/control_data/graphical_units_data/plot/custom_coordinates.npz b/tests/test_graphical_units/control_data/plot/custom_coordinates.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/custom_coordinates.npz
rename to tests/test_graphical_units/control_data/plot/custom_coordinates.npz
diff --git a/tests/control_data/graphical_units_data/plot/get_area.npz b/tests/test_graphical_units/control_data/plot/get_area.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/get_area.npz
rename to tests/test_graphical_units/control_data/plot/get_area.npz
diff --git a/tests/control_data/graphical_units_data/plot/get_area_with_boundary_and_few_plot_points.npz b/tests/test_graphical_units/control_data/plot/get_area_with_boundary_and_few_plot_points.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/get_area_with_boundary_and_few_plot_points.npz
rename to tests/test_graphical_units/control_data/plot/get_area_with_boundary_and_few_plot_points.npz
diff --git a/tests/control_data/graphical_units_data/plot/get_area_with_riemann_rectangles.npz b/tests/test_graphical_units/control_data/plot/get_area_with_riemann_rectangles.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/get_area_with_riemann_rectangles.npz
rename to tests/test_graphical_units/control_data/plot/get_area_with_riemann_rectangles.npz
diff --git a/tests/control_data/graphical_units_data/plot/get_axis_labels.npz b/tests/test_graphical_units/control_data/plot/get_axis_labels.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/get_axis_labels.npz
rename to tests/test_graphical_units/control_data/plot/get_axis_labels.npz
diff --git a/tests/control_data/graphical_units_data/plot/get_graph_label.npz b/tests/test_graphical_units/control_data/plot/get_graph_label.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/get_graph_label.npz
rename to tests/test_graphical_units/control_data/plot/get_graph_label.npz
diff --git a/tests/control_data/graphical_units_data/plot/get_lines_to_point.npz b/tests/test_graphical_units/control_data/plot/get_lines_to_point.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/get_lines_to_point.npz
rename to tests/test_graphical_units/control_data/plot/get_lines_to_point.npz
diff --git a/tests/control_data/graphical_units_data/plot/get_riemann_rectangles.npz b/tests/test_graphical_units/control_data/plot/get_riemann_rectangles.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/get_riemann_rectangles.npz
rename to tests/test_graphical_units/control_data/plot/get_riemann_rectangles.npz
diff --git a/tests/control_data/graphical_units_data/plot/get_x_axis_label.npz b/tests/test_graphical_units/control_data/plot/get_x_axis_label.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/get_x_axis_label.npz
rename to tests/test_graphical_units/control_data/plot/get_x_axis_label.npz
diff --git a/tests/control_data/graphical_units_data/plot/get_y_axis_label.npz b/tests/test_graphical_units/control_data/plot/get_y_axis_label.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/get_y_axis_label.npz
rename to tests/test_graphical_units/control_data/plot/get_y_axis_label.npz
diff --git a/tests/control_data/graphical_units_data/plot/get_z_axis_label.npz b/tests/test_graphical_units/control_data/plot/get_z_axis_label.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/get_z_axis_label.npz
rename to tests/test_graphical_units/control_data/plot/get_z_axis_label.npz
diff --git a/tests/control_data/graphical_units_data/plot/log_scaling_graph.npz b/tests/test_graphical_units/control_data/plot/log_scaling_graph.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/log_scaling_graph.npz
rename to tests/test_graphical_units/control_data/plot/log_scaling_graph.npz
diff --git a/tests/control_data/graphical_units_data/plot/plot.npz b/tests/test_graphical_units/control_data/plot/plot.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/plot.npz
rename to tests/test_graphical_units/control_data/plot/plot.npz
diff --git a/tests/control_data/graphical_units_data/plot/plot_derivative_graph.npz b/tests/test_graphical_units/control_data/plot/plot_derivative_graph.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/plot_derivative_graph.npz
rename to tests/test_graphical_units/control_data/plot/plot_derivative_graph.npz
diff --git a/tests/control_data/graphical_units_data/plot/plot_functions.npz b/tests/test_graphical_units/control_data/plot/plot_functions.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/plot_functions.npz
rename to tests/test_graphical_units/control_data/plot/plot_functions.npz
diff --git a/tests/control_data/graphical_units_data/plot/plot_line_graph.npz b/tests/test_graphical_units/control_data/plot/plot_line_graph.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/plot_line_graph.npz
rename to tests/test_graphical_units/control_data/plot/plot_line_graph.npz
diff --git a/tests/control_data/graphical_units_data/plot/polar_graph.npz b/tests/test_graphical_units/control_data/plot/polar_graph.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/polar_graph.npz
rename to tests/test_graphical_units/control_data/plot/polar_graph.npz
diff --git a/tests/control_data/graphical_units_data/plot/t_label.npz b/tests/test_graphical_units/control_data/plot/t_label.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/plot/t_label.npz
rename to tests/test_graphical_units/control_data/plot/t_label.npz
diff --git a/tests/control_data/graphical_units_data/polyhedra/Dodecahedron.npz b/tests/test_graphical_units/control_data/polyhedra/Dodecahedron.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/polyhedra/Dodecahedron.npz
rename to tests/test_graphical_units/control_data/polyhedra/Dodecahedron.npz
diff --git a/tests/control_data/graphical_units_data/polyhedra/Icosahedron.npz b/tests/test_graphical_units/control_data/polyhedra/Icosahedron.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/polyhedra/Icosahedron.npz
rename to tests/test_graphical_units/control_data/polyhedra/Icosahedron.npz
diff --git a/tests/control_data/graphical_units_data/polyhedra/Octahedron.npz b/tests/test_graphical_units/control_data/polyhedra/Octahedron.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/polyhedra/Octahedron.npz
rename to tests/test_graphical_units/control_data/polyhedra/Octahedron.npz
diff --git a/tests/control_data/graphical_units_data/polyhedra/Tetrahedron.npz b/tests/test_graphical_units/control_data/polyhedra/Tetrahedron.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/polyhedra/Tetrahedron.npz
rename to tests/test_graphical_units/control_data/polyhedra/Tetrahedron.npz
diff --git a/tests/control_data/graphical_units_data/specialized/Broadcast.npz b/tests/test_graphical_units/control_data/specialized/Broadcast.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/specialized/Broadcast.npz
rename to tests/test_graphical_units/control_data/specialized/Broadcast.npz
diff --git a/tests/control_data/graphical_units_data/tables/DecimalTable.npz b/tests/test_graphical_units/control_data/tables/DecimalTable.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/tables/DecimalTable.npz
rename to tests/test_graphical_units/control_data/tables/DecimalTable.npz
diff --git a/tests/control_data/graphical_units_data/tables/IntegerTable.npz b/tests/test_graphical_units/control_data/tables/IntegerTable.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/tables/IntegerTable.npz
rename to tests/test_graphical_units/control_data/tables/IntegerTable.npz
diff --git a/tests/control_data/graphical_units_data/tables/MathTable.npz b/tests/test_graphical_units/control_data/tables/MathTable.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/tables/MathTable.npz
rename to tests/test_graphical_units/control_data/tables/MathTable.npz
diff --git a/tests/control_data/graphical_units_data/tables/MobjectTable.npz b/tests/test_graphical_units/control_data/tables/MobjectTable.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/tables/MobjectTable.npz
rename to tests/test_graphical_units/control_data/tables/MobjectTable.npz
diff --git a/tests/control_data/graphical_units_data/tables/Table.npz b/tests/test_graphical_units/control_data/tables/Table.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/tables/Table.npz
rename to tests/test_graphical_units/control_data/tables/Table.npz
diff --git a/tests/control_data/graphical_units_data/threed/AddFixedInFrameMobjects.npz b/tests/test_graphical_units/control_data/threed/AddFixedInFrameMobjects.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/AddFixedInFrameMobjects.npz
rename to tests/test_graphical_units/control_data/threed/AddFixedInFrameMobjects.npz
diff --git a/tests/control_data/graphical_units_data/threed/AmbientCameraMove.npz b/tests/test_graphical_units/control_data/threed/AmbientCameraMove.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/AmbientCameraMove.npz
rename to tests/test_graphical_units/control_data/threed/AmbientCameraMove.npz
diff --git a/tests/control_data/graphical_units_data/threed/Arrow3D.npz b/tests/test_graphical_units/control_data/threed/Arrow3D.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/Arrow3D.npz
rename to tests/test_graphical_units/control_data/threed/Arrow3D.npz
diff --git a/tests/control_data/graphical_units_data/threed/Axes.npz b/tests/test_graphical_units/control_data/threed/Axes.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/Axes.npz
rename to tests/test_graphical_units/control_data/threed/Axes.npz
diff --git a/tests/control_data/graphical_units_data/threed/CameraMove.npz b/tests/test_graphical_units/control_data/threed/CameraMove.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/CameraMove.npz
rename to tests/test_graphical_units/control_data/threed/CameraMove.npz
diff --git a/tests/control_data/graphical_units_data/threed/CameraMoveAxes.npz b/tests/test_graphical_units/control_data/threed/CameraMoveAxes.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/CameraMoveAxes.npz
rename to tests/test_graphical_units/control_data/threed/CameraMoveAxes.npz
diff --git a/tests/control_data/graphical_units_data/threed/Cone.npz b/tests/test_graphical_units/control_data/threed/Cone.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/Cone.npz
rename to tests/test_graphical_units/control_data/threed/Cone.npz
diff --git a/tests/control_data/graphical_units_data/threed/Cube.npz b/tests/test_graphical_units/control_data/threed/Cube.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/Cube.npz
rename to tests/test_graphical_units/control_data/threed/Cube.npz
diff --git a/tests/control_data/graphical_units_data/threed/Cylinder.npz b/tests/test_graphical_units/control_data/threed/Cylinder.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/Cylinder.npz
rename to tests/test_graphical_units/control_data/threed/Cylinder.npz
diff --git a/tests/control_data/graphical_units_data/threed/Dot3D.npz b/tests/test_graphical_units/control_data/threed/Dot3D.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/Dot3D.npz
rename to tests/test_graphical_units/control_data/threed/Dot3D.npz
diff --git a/tests/control_data/graphical_units_data/threed/Line3D.npz b/tests/test_graphical_units/control_data/threed/Line3D.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/Line3D.npz
rename to tests/test_graphical_units/control_data/threed/Line3D.npz
diff --git a/tests/control_data/graphical_units_data/threed/MovingVertices.npz b/tests/test_graphical_units/control_data/threed/MovingVertices.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/MovingVertices.npz
rename to tests/test_graphical_units/control_data/threed/MovingVertices.npz
diff --git a/tests/control_data/graphical_units_data/threed/Sphere.npz b/tests/test_graphical_units/control_data/threed/Sphere.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/Sphere.npz
rename to tests/test_graphical_units/control_data/threed/Sphere.npz
diff --git a/tests/control_data/graphical_units_data/threed/SurfaceColorscale.npz b/tests/test_graphical_units/control_data/threed/SurfaceColorscale.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/SurfaceColorscale.npz
rename to tests/test_graphical_units/control_data/threed/SurfaceColorscale.npz
diff --git a/tests/control_data/graphical_units_data/threed/Torus.npz b/tests/test_graphical_units/control_data/threed/Torus.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/threed/Torus.npz
rename to tests/test_graphical_units/control_data/threed/Torus.npz
diff --git a/tests/control_data/graphical_units_data/transform/AnimationBuilder.npz b/tests/test_graphical_units/control_data/transform/AnimationBuilder.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/AnimationBuilder.npz
rename to tests/test_graphical_units/control_data/transform/AnimationBuilder.npz
diff --git a/tests/control_data/graphical_units_data/transform/ApplyComplexFunction.npz b/tests/test_graphical_units/control_data/transform/ApplyComplexFunction.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/ApplyComplexFunction.npz
rename to tests/test_graphical_units/control_data/transform/ApplyComplexFunction.npz
diff --git a/tests/control_data/graphical_units_data/transform/ApplyFunction.npz b/tests/test_graphical_units/control_data/transform/ApplyFunction.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/ApplyFunction.npz
rename to tests/test_graphical_units/control_data/transform/ApplyFunction.npz
diff --git a/tests/control_data/graphical_units_data/transform/ApplyMatrix.npz b/tests/test_graphical_units/control_data/transform/ApplyMatrix.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/ApplyMatrix.npz
rename to tests/test_graphical_units/control_data/transform/ApplyMatrix.npz
diff --git a/tests/control_data/graphical_units_data/transform/ApplyPointwiseFunction.npz b/tests/test_graphical_units/control_data/transform/ApplyPointwiseFunction.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/ApplyPointwiseFunction.npz
rename to tests/test_graphical_units/control_data/transform/ApplyPointwiseFunction.npz
diff --git a/tests/control_data/graphical_units_data/transform/ClockwiseTransform.npz b/tests/test_graphical_units/control_data/transform/ClockwiseTransform.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/ClockwiseTransform.npz
rename to tests/test_graphical_units/control_data/transform/ClockwiseTransform.npz
diff --git a/tests/control_data/graphical_units_data/transform/CounterclockwiseTransform.npz b/tests/test_graphical_units/control_data/transform/CounterclockwiseTransform.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/CounterclockwiseTransform.npz
rename to tests/test_graphical_units/control_data/transform/CounterclockwiseTransform.npz
diff --git a/tests/control_data/graphical_units_data/transform/CyclicReplace.npz b/tests/test_graphical_units/control_data/transform/CyclicReplace.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/CyclicReplace.npz
rename to tests/test_graphical_units/control_data/transform/CyclicReplace.npz
diff --git a/tests/control_data/graphical_units_data/transform/FadeInAndOut.npz b/tests/test_graphical_units/control_data/transform/FadeInAndOut.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/FadeInAndOut.npz
rename to tests/test_graphical_units/control_data/transform/FadeInAndOut.npz
diff --git a/tests/control_data/graphical_units_data/transform/FadeToColort.npz b/tests/test_graphical_units/control_data/transform/FadeToColort.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/FadeToColort.npz
rename to tests/test_graphical_units/control_data/transform/FadeToColort.npz
diff --git a/tests/control_data/graphical_units_data/transform/FullRotation.npz b/tests/test_graphical_units/control_data/transform/FullRotation.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/FullRotation.npz
rename to tests/test_graphical_units/control_data/transform/FullRotation.npz
diff --git a/tests/control_data/graphical_units_data/transform/MatchPointsScene.npz b/tests/test_graphical_units/control_data/transform/MatchPointsScene.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/MatchPointsScene.npz
rename to tests/test_graphical_units/control_data/transform/MatchPointsScene.npz
diff --git a/tests/control_data/graphical_units_data/transform/MoveToTarget.npz b/tests/test_graphical_units/control_data/transform/MoveToTarget.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/MoveToTarget.npz
rename to tests/test_graphical_units/control_data/transform/MoveToTarget.npz
diff --git a/tests/control_data/graphical_units_data/transform/Restore.npz b/tests/test_graphical_units/control_data/transform/Restore.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/Restore.npz
rename to tests/test_graphical_units/control_data/transform/Restore.npz
diff --git a/tests/control_data/graphical_units_data/transform/ScaleInPlace.npz b/tests/test_graphical_units/control_data/transform/ScaleInPlace.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/ScaleInPlace.npz
rename to tests/test_graphical_units/control_data/transform/ScaleInPlace.npz
diff --git a/tests/control_data/graphical_units_data/transform/ShrinkToCenter.npz b/tests/test_graphical_units/control_data/transform/ShrinkToCenter.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/ShrinkToCenter.npz
rename to tests/test_graphical_units/control_data/transform/ShrinkToCenter.npz
diff --git a/tests/control_data/graphical_units_data/transform/Transform.npz b/tests/test_graphical_units/control_data/transform/Transform.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/Transform.npz
rename to tests/test_graphical_units/control_data/transform/Transform.npz
diff --git a/tests/control_data/graphical_units_data/transform/TransformFromCopy.npz b/tests/test_graphical_units/control_data/transform/TransformFromCopy.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/transform/TransformFromCopy.npz
rename to tests/test_graphical_units/control_data/transform/TransformFromCopy.npz
diff --git a/tests/control_data/graphical_units_data/updaters/LastFrameWhenCleared.npz b/tests/test_graphical_units/control_data/updaters/LastFrameWhenCleared.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/updaters/LastFrameWhenCleared.npz
rename to tests/test_graphical_units/control_data/updaters/LastFrameWhenCleared.npz
diff --git a/tests/control_data/graphical_units_data/updaters/UpdateSceneDuringAnimation.npz b/tests/test_graphical_units/control_data/updaters/UpdateSceneDuringAnimation.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/updaters/UpdateSceneDuringAnimation.npz
rename to tests/test_graphical_units/control_data/updaters/UpdateSceneDuringAnimation.npz
diff --git a/tests/control_data/graphical_units_data/updaters/Updater.npz b/tests/test_graphical_units/control_data/updaters/Updater.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/updaters/Updater.npz
rename to tests/test_graphical_units/control_data/updaters/Updater.npz
diff --git a/tests/control_data/graphical_units_data/updaters/ValueTracker.npz b/tests/test_graphical_units/control_data/updaters/ValueTracker.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/updaters/ValueTracker.npz
rename to tests/test_graphical_units/control_data/updaters/ValueTracker.npz
diff --git a/tests/control_data/graphical_units_data/vector_scene/vector_to_coords.npz b/tests/test_graphical_units/control_data/vector_scene/vector_to_coords.npz
similarity index 100%
rename from tests/control_data/graphical_units_data/vector_scene/vector_to_coords.npz
rename to tests/test_graphical_units/control_data/vector_scene/vector_to_coords.npz
diff --git a/tests/test_graphical_units/test_axes.py b/tests/test_graphical_units/test_axes.py
index a4412e8c2..036710a55 100644
--- a/tests/test_graphical_units/test_axes.py
+++ b/tests/test_graphical_units/test_axes.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "plot"
diff --git a/tests/test_graphical_units/test_boolops.py b/tests/test_graphical_units/test_boolops.py
new file mode 100644
index 000000000..f80ec78b1
--- /dev/null
+++ b/tests/test_graphical_units/test_boolops.py
@@ -0,0 +1,59 @@
+from manim import (
+ BLUE,
+ Circle,
+ Difference,
+ Exclusion,
+ Intersection,
+ Rectangle,
+ Square,
+ Triangle,
+ Union,
+)
+
+# not exported by default, so directly import
+from manim.mobject.boolean_ops import _BooleanOps
+from manim.utils.testing.frames_comparison import frames_comparison
+
+__module_test__ = "boolean_ops"
+
+
+@frames_comparison()
+def test_union(scene):
+ a = Square()
+ b = Circle().move_to([0.2, 0.2, 0.0])
+ c = Rectangle()
+ un = Union(a, b, c).next_to(b)
+ scene.add(a, b, c, un)
+
+
+@frames_comparison()
+def test_intersection(scene):
+ a = Square()
+ b = Circle().move_to([0.3, 0.3, 0.0])
+ i = Intersection(a, b).next_to(b)
+ scene.add(a, b, i)
+
+
+@frames_comparison()
+def test_difference(scene):
+ a = Square()
+ b = Circle().move_to([0.2, 0.3, 0.0])
+ di = Difference(a, b).next_to(b)
+ scene.add(a, b, di)
+
+
+@frames_comparison()
+def test_exclusion(scene):
+ a = Square()
+ b = Circle().move_to([0.3, 0.2, 0.0])
+ ex = Exclusion(a, b).next_to(a)
+ scene.add(a, b, ex)
+
+
+@frames_comparison()
+def test_intersection_3_mobjects(scene):
+ a = Square()
+ b = Circle().move_to([0.2, 0.2, 0])
+ c = Triangle()
+ i = Intersection(a, b, c, fill_opacity=0.5, color=BLUE)
+ scene.add(a, b, c, i)
diff --git a/tests/test_graphical_units/test_brace.py b/tests/test_graphical_units/test_brace.py
index 364bc17e3..3ebfbb0a9 100644
--- a/tests/test_graphical_units/test_brace.py
+++ b/tests/test_graphical_units/test_brace.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "brace"
diff --git a/tests/test_graphical_units/test_composition.py b/tests/test_graphical_units/test_composition.py
index c5f8b7fd7..3992225cc 100644
--- a/tests/test_graphical_units/test_composition.py
+++ b/tests/test_graphical_units/test_composition.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "composition"
diff --git a/tests/test_graphical_units/test_coordinate_systems.py b/tests/test_graphical_units/test_coordinate_systems.py
index 6b57064f5..a18c96db8 100644
--- a/tests/test_graphical_units/test_coordinate_systems.py
+++ b/tests/test_graphical_units/test_coordinate_systems.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "coordinate_system"
diff --git a/tests/test_graphical_units/test_creation.py b/tests/test_graphical_units/test_creation.py
index 6c1a7e587..a32158782 100644
--- a/tests/test_graphical_units/test_creation.py
+++ b/tests/test_graphical_units/test_creation.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "creation"
diff --git a/tests/test_graphical_units/test_functions.py b/tests/test_graphical_units/test_functions.py
index 731c649dd..c65da5ada 100644
--- a/tests/test_graphical_units/test_functions.py
+++ b/tests/test_graphical_units/test_functions.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "functions"
diff --git a/tests/test_graphical_units/test_geometry.py b/tests/test_graphical_units/test_geometry.py
index b3d2c4b71..09d43c16a 100644
--- a/tests/test_graphical_units/test_geometry.py
+++ b/tests/test_graphical_units/test_geometry.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "geometry"
diff --git a/tests/test_graphical_units/test_img_and_svg.py b/tests/test_graphical_units/test_img_and_svg.py
index ebc82d662..416600e54 100644
--- a/tests/test_graphical_units/test_img_and_svg.py
+++ b/tests/test_graphical_units/test_img_and_svg.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
from ..helpers.path_utils import get_svg_resource
diff --git a/tests/test_graphical_units/test_indication.py b/tests/test_graphical_units/test_indication.py
index 7af5d351b..ef56dcdde 100644
--- a/tests/test_graphical_units/test_indication.py
+++ b/tests/test_graphical_units/test_indication.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "indication"
diff --git a/tests/test_graphical_units/test_mobjects.py b/tests/test_graphical_units/test_mobjects.py
index 1bf5e7d99..5bb6aedd3 100644
--- a/tests/test_graphical_units/test_mobjects.py
+++ b/tests/test_graphical_units/test_mobjects.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "mobjects"
diff --git a/tests/test_graphical_units/test_modifier_methods.py b/tests/test_graphical_units/test_modifier_methods.py
index 22f8044bd..80346874c 100644
--- a/tests/test_graphical_units/test_modifier_methods.py
+++ b/tests/test_graphical_units/test_modifier_methods.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "modifier_methods"
diff --git a/tests/test_graphical_units/test_movements.py b/tests/test_graphical_units/test_movements.py
index 9aed085be..0753a25fd 100644
--- a/tests/test_graphical_units/test_movements.py
+++ b/tests/test_graphical_units/test_movements.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "movements"
diff --git a/tests/test_graphical_units/test_numbers.py b/tests/test_graphical_units/test_numbers.py
index f4c037edd..f5069a777 100644
--- a/tests/test_graphical_units/test_numbers.py
+++ b/tests/test_graphical_units/test_numbers.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "numbers"
diff --git a/tests/test_graphical_units/test_opengl.py b/tests/test_graphical_units/test_opengl.py
index ce4aee92a..da93058e9 100644
--- a/tests/test_graphical_units/test_opengl.py
+++ b/tests/test_graphical_units/test_opengl.py
@@ -2,7 +2,7 @@ import pytest
from manim import *
from manim.renderer.opengl_renderer import OpenGLRenderer
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "opengl"
diff --git a/tests/test_graphical_units/test_polyhedra.py b/tests/test_graphical_units/test_polyhedra.py
index 8994df751..e9ba62431 100644
--- a/tests/test_graphical_units/test_polyhedra.py
+++ b/tests/test_graphical_units/test_polyhedra.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "polyhedra"
diff --git a/tests/test_graphical_units/test_specialized.py b/tests/test_graphical_units/test_specialized.py
index 872aa96f3..534b7a4a2 100644
--- a/tests/test_graphical_units/test_specialized.py
+++ b/tests/test_graphical_units/test_specialized.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "specialized"
diff --git a/tests/test_graphical_units/test_tables.py b/tests/test_graphical_units/test_tables.py
index bd2465f74..79dbf882a 100644
--- a/tests/test_graphical_units/test_tables.py
+++ b/tests/test_graphical_units/test_tables.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "tables"
diff --git a/tests/test_graphical_units/test_threed.py b/tests/test_graphical_units/test_threed.py
index d9c66730c..b0df275fb 100644
--- a/tests/test_graphical_units/test_threed.py
+++ b/tests/test_graphical_units/test_threed.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "threed"
diff --git a/tests/test_graphical_units/test_transform.py b/tests/test_graphical_units/test_transform.py
index 0abbbdcff..ca2699ae0 100644
--- a/tests/test_graphical_units/test_transform.py
+++ b/tests/test_graphical_units/test_transform.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "transform"
diff --git a/tests/test_graphical_units/test_updaters.py b/tests/test_graphical_units/test_updaters.py
index 9340c9ded..623e9f709 100644
--- a/tests/test_graphical_units/test_updaters.py
+++ b/tests/test_graphical_units/test_updaters.py
@@ -1,5 +1,5 @@
from manim import *
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "updaters"
diff --git a/tests/test_graphical_units/test_vector_scene.py b/tests/test_graphical_units/test_vector_scene.py
index 40696b2d9..e0333f9f2 100644
--- a/tests/test_graphical_units/test_vector_scene.py
+++ b/tests/test_graphical_units/test_vector_scene.py
@@ -1,5 +1,5 @@
from manim.scene.vector_space_scene import VectorScene
-from tests.test_graphical_units.testing.frames_comparison import frames_comparison
+from manim.utils.testing.frames_comparison import frames_comparison
__module_test__ = "vector_scene"