Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Revert "fixed conftest"

Hugues Devimeuxf39ef1384606
diff --git a/tests/conftest.py b/tests/conftest.py
index 42b19a059..20e1c1250 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -21,15 +21,13 @@ class SceneTester:
'tests', 'tests_data', module_tested)
tex_dir, text_dir = None, None
- if caching_needed:
- text_dir = os.path.join(
- self.path_tests_medias, scene_object.__name__, 'Text')
- tex_dir = os.path.join(
- self.path_tests_medias, scene_object.__name__, 'Tex')
+ if caching_needed:
+ text_dir = os.path.join(self.path_tests_medias, scene_object.__name__, 'Text')
+ tex_dir = os.path.join(self.path_tests_medias, scene_object.__name__, 'Tex')
conf_dirs = {'media_dir': None,
- 'video_dir': None,
- 'tex_dir': tex_dir,
- 'text_dir': text_dir,
+ 'video_dir': None,
+ 'tex_dir': tex_dir,
+ 'text_dir': text_dir,
}
# PROVISIONAL. To change when #98 is merged. TODO
config.initialize_directories(conf_dirs)
@@ -53,13 +51,12 @@ class SceneTester:
assert(test_result), "The frames don't match. {} has been modified. Please ignore if it was intended".format(
str(self.scene).replace('Test', ''))
return 1
-
+
@pytest.fixture
def Tester():
return SceneTester
-
@pytest.fixture
def get_config_test():
"""Function used internally by pytest as a fixture. Return the Configuration for the scenes rendered. The config is the one used when
@@ -87,3 +84,4 @@ def get_config_test():
'start_at_animation_number': None
}
return CONFIG
+