|
8 | 8 |
|
9 | 9 | from manim import WHITE, Scene, Square, Tex, Text, tempconfig |
10 | 10 | 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 |
12 | 12 |
|
13 | 13 |
|
14 | 14 | def test_tempconfig(config): |
@@ -118,42 +118,6 @@ def test_digest_file(tmp_path, config): |
118 | 118 | "this_is_my_favorite_path/test/prepare_for_unforeseen_consequences" |
119 | 119 | ) |
120 | 120 |
|
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 | | - |
157 | 121 | def test_pixel_dimensions(tmp_path, config): |
158 | 122 | with tempfile.NamedTemporaryFile("w", dir=tmp_path, delete=False) as tmp_cfg: |
159 | 123 | tmp_cfg.write( |
|
0 commit comments