A community-maintained Python framework for creating mathematical animations.
Refactor tests (#2866)
ad_chaos677e88ef96e4
diff --git a/tests/test_commands.py b/tests/interface/test_commands.pysimilarity index 92%rename from tests/test_commands.pyrename to tests/interface/test_commands.pyindex aec1d47d3..aed2bf179 100644--- a/tests/test_commands.py+++ b/tests/interface/test_commands.py@@ -71,12 +71,16 @@ def test_manim_init_subcommand():expected_main_py = ""with open(- Path.resolve(Path(__file__).parent.parent / "manim/templates/template.cfg"),+ Path.resolve(+ Path(__file__).parent.parent.parent / "manim/templates/template.cfg"+ ),) as f:expected_manim_cfg = f.read()with open(- Path.resolve(Path(__file__).parent.parent / "manim/templates/Default.mtp"),+ Path.resolve(+ Path(__file__).parent.parent.parent / "manim/templates/Default.mtp"+ ),) as f:expected_main_py = f.read()diff --git a/tests/test_version.py b/tests/miscellaneous/test_version.pysimilarity index 100%rename from tests/test_version.pyrename to tests/miscellaneous/test_version.pydiff --git a/tests/test_animate.py b/tests/module/animation/test_animate.pysimilarity index 100%rename from tests/test_animate.pyrename to tests/module/animation/test_animate.pydiff --git a/tests/test_composition.py b/tests/module/animation/test_composition.pysimilarity index 100%rename from tests/test_composition.pyrename to tests/module/animation/test_composition.pydiff --git a/tests/test_override_animation.py b/tests/module/animation/test_override_animation.pysimilarity index 100%rename from tests/test_override_animation.pyrename to tests/module/animation/test_override_animation.pydiff --git a/tests/test_unit_geometry.py b/tests/module/mobject/geometry/test_unit_geometry.pysimilarity index 100%rename from tests/test_unit_geometry.pyrename to tests/module/mobject/geometry/test_unit_geometry.pydiff --git a/tests/test_axes_shift.py b/tests/module/mobject/graphing/test_axes_shift.pysimilarity index 100%rename from tests/test_axes_shift.pyrename to tests/module/mobject/graphing/test_axes_shift.pydiff --git a/tests/test_coordinate_system.py b/tests/module/mobject/graphing/test_coordinate_system.pysimilarity index 100%rename from tests/test_coordinate_system.pyrename to tests/module/mobject/graphing/test_coordinate_system.pydiff --git a/tests/test_number_line.py b/tests/module/mobject/graphing/test_number_line.pysimilarity index 100%rename from tests/test_number_line.pyrename to tests/module/mobject/graphing/test_number_line.pydiff --git a/tests/test_ticks.py b/tests/module/mobject/graphing/test_ticks.pysimilarity index 100%rename from tests/test_ticks.pyrename to tests/module/mobject/graphing/test_ticks.pydiff --git a/tests/test_copy.py b/tests/module/mobject/mobject/test_copy.pysimilarity index 100%rename from tests/test_copy.pyrename to tests/module/mobject/mobject/test_copy.pydiff --git a/tests/test_family.py b/tests/module/mobject/mobject/test_family.pysimilarity index 100%rename from tests/test_family.pyrename to tests/module/mobject/mobject/test_family.pydiff --git a/tests/test_get_set.py b/tests/module/mobject/mobject/test_get_set.pysimilarity index 100%rename from tests/test_get_set.pyrename to tests/module/mobject/mobject/test_get_set.pydiff --git a/tests/test_mobject.py b/tests/module/mobject/mobject/test_mobject.pysimilarity index 100%rename from tests/test_mobject.pyrename to tests/module/mobject/mobject/test_mobject.pydiff --git a/tests/test_opengl_metaclass.py b/tests/module/mobject/mobject/test_opengl_metaclass.pysimilarity index 100%rename from tests/test_opengl_metaclass.pyrename to tests/module/mobject/mobject/test_opengl_metaclass.pydiff --git a/tests/test_set_attr.py b/tests/module/mobject/mobject/test_set_attr.pysimilarity index 100%rename from tests/test_set_attr.pyrename to tests/module/mobject/mobject/test_set_attr.pydiff --git a/tests/test_svg_mobject.py b/tests/module/mobject/svg/test_svg_mobject.pysimilarity index 100%rename from tests/test_svg_mobject.pyrename to tests/module/mobject/svg/test_svg_mobject.pydiff --git a/tests/test_boolean_ops.py b/tests/module/mobject/test_boolean_ops.pysimilarity index 100%rename from tests/test_boolean_ops.pyrename to tests/module/mobject/test_boolean_ops.pydiff --git a/tests/test_graph.py b/tests/module/mobject/test_graph.pysimilarity index 100%rename from tests/test_graph.pyrename to tests/module/mobject/test_graph.pydiff --git a/tests/test_value_tracker.py b/tests/module/mobject/test_value_tracker.pysimilarity index 100%rename from tests/test_value_tracker.pyrename to tests/module/mobject/test_value_tracker.pydiff --git a/tests/test_markup.py b/tests/module/mobject/text/test_markup.pysimilarity index 100%rename from tests/test_markup.pyrename to tests/module/mobject/text/test_markup.pydiff --git a/tests/test_numbers.py b/tests/module/mobject/text/test_numbers.pysimilarity index 100%rename from tests/test_numbers.pyrename to tests/module/mobject/text/test_numbers.pydiff --git a/tests/test_texmobject.py b/tests/module/mobject/text/test_texmobject.pysimilarity index 100%rename from tests/test_texmobject.pyrename to tests/module/mobject/text/test_texmobject.pydiff --git a/tests/test_text_mobject.py b/tests/module/mobject/text/test_text_mobject.pysimilarity index 100%rename from tests/test_text_mobject.pyrename to tests/module/mobject/text/test_text_mobject.pydiff --git a/tests/test_stroke.py b/tests/module/mobject/types/vectorized_mobject/test_stroke.pysimilarity index 100%rename from tests/test_stroke.pyrename to tests/module/mobject/types/vectorized_mobject/test_stroke.pydiff --git a/tests/test_vectorized_mobject.py b/tests/module/mobject/types/vectorized_mobject/test_vectorized_mobject.pysimilarity index 100%rename from tests/test_vectorized_mobject.pyrename to tests/module/mobject/types/vectorized_mobject/test_vectorized_mobject.pydiff --git a/tests/test_auto_zoom.py b/tests/module/scene/test_auto_zoom.pysimilarity index 100%rename from tests/test_auto_zoom.pyrename to tests/module/scene/test_auto_zoom.pydiff --git a/tests/test_scene.py b/tests/module/scene/test_scene.pysimilarity index 100%rename from tests/test_scene.pyrename to tests/module/scene/test_scene.pydiff --git a/tests/test_sound.py b/tests/module/scene/test_sound.pysimilarity index 100%rename from tests/test_sound.pyrename to tests/module/scene/test_sound.pydiff --git a/tests/test_threed_scene.py b/tests/module/scene/test_threed_scene.pysimilarity index 100%rename from tests/test_threed_scene.pyrename to tests/module/scene/test_threed_scene.pydiff --git a/tests/test_color.py b/tests/module/utils/test_color.pysimilarity index 100%rename from tests/test_color.pyrename to tests/module/utils/test_color.pydiff --git a/tests/test_deprecation.py b/tests/module/utils/test_deprecation.pysimilarity index 100%rename from tests/test_deprecation.pyrename to tests/module/utils/test_deprecation.pydiff --git a/tests/test_file_ops.py b/tests/module/utils/test_file_ops.pysimilarity index 86%rename from tests/test_file_ops.pyrename to tests/module/utils/test_file_ops.pyindex f8aaf1bcf..943a70f75 100644--- a/tests/test_file_ops.py+++ b/tests/module/utils/test_file_ops.py@@ -3,9 +3,8 @@ from __future__ import annotationsfrom pathlib import Pathfrom manim import *--from .assert_utils import assert_dir_exists, assert_file_not_exists-from .utils.video_tester import *+from tests.assert_utils import assert_dir_exists, assert_file_not_exists+from tests.utils.video_tester import *def test_guarantee_existence(tmp_path: Path):diff --git a/tests/test_hashing.py b/tests/module/utils/test_hashing.pysimilarity index 100%rename from tests/test_hashing.pyrename to tests/module/utils/test_hashing.pydiff --git a/tests/test_space_ops.py b/tests/module/utils/test_space_ops.pysimilarity index 100%rename from tests/test_space_ops.pyrename to tests/module/utils/test_space_ops.pydiff --git a/tests/test_units.py b/tests/module/utils/test_units.pysimilarity index 100%rename from tests/test_units.pyrename to tests/module/utils/test_units.py