A community-maintained Python framework for creating mathematical animations.
now it should work
Hugues Devimeux95ae968994c2
diff --git a/tests/conftest.py b/tests/conftest.pyindex 058337ef0..42b19a059 100644--- a/tests/conftest.py+++ b/tests/conftest.py@@ -15,10 +15,10 @@ class SceneTester:def __init__(self, scene_object, config_scene, module_tested, caching_needed=False):# Disable the the logs, (--quiet is broken) TODOlogging.disable(logging.CRITICAL)- self.path_tests_medias = os.path.join(os.getcwd(),- 'manim', 'tests', 'tests_cache', module_tested)- self.path_tests_data = os.path.join(os.getcwd(),- 'manim', 'tests', 'tests_data', module_tested)+ self.path_tests_medias = os.path.join(+ 'tests', 'tests_cache', module_tested)+ self.path_tests_data = os.path.join(+ 'tests', 'tests_data', module_tested)tex_dir, text_dir = None, Noneif caching_needed:@@ -44,7 +44,7 @@ class SceneTester:self.path_tests_data, "{}.npy".format(str(self.scene))))raise FileNotFoundError('test_data not found !')assert (str(e_info.value) ==- 'test_data not found !'), '{} seems to not have a pre-rendered frame for testing.'.format(str(self.scene).replace('Test', ''))+ 'test_data not found !'), '{} does not seem have a pre-rendered frame for testing.'.format(str(self.scene).replace('Test', ''))return data_loadeddef test(self):diff --git a/tests/test_CLI.py b/tests/test_CLI.pyindex b777a4285..0083f9228 100644--- a/tests/test_CLI.py+++ b/tests/test_CLI.py@@ -21,9 +21,8 @@ def test_help():def test_basicScene():""" 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(- "manim", "tests", "tests_data", "basic_scenes.py")- path_output = os.path.join("manim", "tests", "tests_cache", "media_temp")+ path_basic_scene = os.path.join("tests", "tests_data", "basic_scenes.py")+ path_output = os.path.join("tests", "tests_cache", "media_temp")command = ["python", "-m", "manim", path_basic_scene,"SquareToCircle", "-l", "--media_dir", path_output]out, err, exitcode = capture(command)@@ -36,9 +35,8 @@ def test_basicScene():def test_WriteStuff():"""Simulate WriteStuff. This is mainly intended to test the caching process of the tex objects"""- path_basic_scene = os.path.join(- "manim", "tests", "tests_data", "basic_scenes.py")- path_output = os.path.join("manim", "tests", "tests_cache", "media_temp")+ path_basic_scene = os.path.join("tests", "tests_data", "basic_scenes.py")+ path_output = os.path.join("tests", "tests_cache", "media_temp")command = ["python", "-m", "manim", path_basic_scene,"WriteStuff", "-l", "--media_dir", path_output]out, err, exitcode = capture(command)