Skip to content

Commit 375c28e

Browse files
committed
simplify tests further
1 parent ddcacfb commit 375c28e

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

tests-simple/test_config.py

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from manim import WHITE, Scene, Square, Tex, Text, tempconfig
1010
from manim._config.utils import ManimConfig
11-
from tests.assert_utils import assert_dir_exists, assert_dir_filled, assert_file_exists
11+
# from tests.assert_utils import assert_dir_exists, assert_dir_filled, assert_file_exists
1212

1313

1414
def test_tempconfig(config):
@@ -118,42 +118,6 @@ def test_digest_file(tmp_path, config):
118118
"this_is_my_favorite_path/test/prepare_for_unforeseen_consequences"
119119
)
120120

121-
122-
def test_custom_dirs(tmp_path, config):
123-
config.media_dir = tmp_path
124-
config.save_sections = True
125-
config.log_to_file = True
126-
config.frame_rate = 15
127-
config.pixel_height = 854
128-
config.pixel_width = 480
129-
config.sections_dir = "{media_dir}/test_sections"
130-
config.video_dir = "{media_dir}/test_video"
131-
config.partial_movie_dir = "{media_dir}/test_partial_movie_dir"
132-
config.images_dir = "{media_dir}/test_images"
133-
config.text_dir = "{media_dir}/test_text"
134-
config.tex_dir = "{media_dir}/test_tex"
135-
config.log_dir = "{media_dir}/test_log"
136-
137-
scene = MyScene()
138-
scene.render()
139-
tmp_path = Path(tmp_path)
140-
assert_dir_filled(tmp_path / "test_sections")
141-
assert_file_exists(tmp_path / "test_sections/MyScene.json")
142-
143-
assert_dir_filled(tmp_path / "test_video")
144-
assert_file_exists(tmp_path / "test_video/MyScene.mp4")
145-
146-
assert_dir_filled(tmp_path / "test_partial_movie_dir")
147-
assert_file_exists(tmp_path / "test_partial_movie_dir/partial_movie_file_list.txt")
148-
149-
# TODO: another example with image output would be nice
150-
assert_dir_exists(tmp_path / "test_images")
151-
152-
assert_dir_filled(tmp_path / "test_text")
153-
assert_dir_filled(tmp_path / "test_tex")
154-
assert_dir_filled(tmp_path / "test_log")
155-
156-
157121
def test_pixel_dimensions(tmp_path, config):
158122
with tempfile.NamedTemporaryFile("w", dir=tmp_path, delete=False) as tmp_cfg:
159123
tmp_cfg.write(

0 commit comments

Comments
 (0)