A community-maintained Python framework for creating mathematical animations.
fixed tests
Hugues Devimeux475490b4244e
diff --git a/tests/test_cli/test_cli.py b/tests/test_cli/test_cli.pyindex da850a147..195899cf1 100644--- a/tests/test_cli/test_cli.py+++ b/tests/test_cli/test_cli.py@@ -22,7 +22,7 @@ def test_help(python_version):@pytest.mark.skip_end_to_enddef test_basicScene(python_version):""" Simulate SquareToCircle. The cache will be saved in tests_caches/media_temp (temporary directory). This is mainly intended to test the partial-movies process. """- path_basic_scene = os.path.join("tests_data", "basic_scenes.py")+ path_basic_scene = os.path.join("tests", "tests_data", "basic_scenes.py")path_output = os.path.join("tests_cache", "media_temp")command = [python_version, "-m", "manim", path_basic_scene,"SquareToCircle", "-l", "--media_dir", path_output]@@ -35,7 +35,7 @@ def test_basicScene(python_version):@pytest.mark.skip_end_to_enddef test_WriteStuff(python_version):"""This is mainly intended to test the caching process of the tex objects"""- path_basic_scene = os.path.join("tests_data", "basic_scenes.py")+ path_basic_scene = os.path.join("tests", "tests_data", "basic_scenes.py")path_output = os.path.join("tests_cache", "media_temp")command = [python_version, "-m", "manim", path_basic_scene,"WriteStuff", "-l", "--media_dir", path_output]diff --git a/tests/testing_utils.py b/tests/testing_utils.pyindex affd66e20..3235c1303 100644--- a/tests/testing_utils.py+++ b/tests/testing_utils.py@@ -6,7 +6,7 @@ import loggingimport pytestfrom manim import logger-from manim import config+from manim import config, file_writer_configclass SceneTester:@@ -34,8 +34,8 @@ class SceneTester:def __init__(self, scene_object, module_tested, caching_needed=False):# Disable the the logs, (--quiet is broken) TODOlogging.disable(logging.CRITICAL)- self.path_tests_medias_cache = os.path.join('tests_cache', module_tested)- self.path_tests_data = os.path.join('tests_data', module_tested)+ self.path_tests_medias_cache = os.path.join('tests', 'tests_cache', module_tested)+ self.path_tests_data = os.path.join('tests', 'tests_data', module_tested)if caching_needed:config['text_dir'] = os.path.join(@@ -43,6 +43,7 @@ class SceneTester:config['tex_dir'] = os.path.join(self.path_tests_medias_cache, scene_object.__name__, 'Tex')+ file_writer_config['skip_animations'] = Trueconfig['pixel_height'] = 480config['pixel_width'] = 854config['frame_rate'] = 15