Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

blackstreet bois

leotrs865d396c459a
diff --git a/tests/test_scene_rendering/conftest.py b/tests/test_scene_rendering/conftest.py
index a322ba1b6..b5b6f1d05 100644
--- a/tests/test_scene_rendering/conftest.py
+++ b/tests/test_scene_rendering/conftest.py
@@ -2,6 +2,7 @@ import pytest
from pathlib import Path
+
@pytest.fixture
def manim_cfg_file():
return str(Path(__file__).parent / "manim.cfg")
diff --git a/tests/test_scene_rendering/test_cli_flags.py b/tests/test_scene_rendering/test_cli_flags.py
index 5693e7c96..934445f13 100644
--- a/tests/test_scene_rendering/test_cli_flags.py
+++ b/tests/test_scene_rendering/test_cli_flags.py
@@ -80,13 +80,13 @@ def test_s_flag_no_animations(tmp_path, manim_cfg_file, simple_scenes_path):
out, err, exit_code = capture(command)
assert exit_code == 0, err
- print(list((tmp_path / 'images' / 'simple_scenes').iterdir()))
+ print(list((tmp_path / "images" / "simple_scenes").iterdir()))
- is_empty = not any((tmp_path / 'videos').iterdir())
- assert is_empty, 'running manim with -s flag rendered a video'
+ is_empty = not any((tmp_path / "videos").iterdir())
+ assert is_empty, "running manim with -s flag rendered a video"
- is_empty = not any((tmp_path / 'images' / 'simple_scenes').iterdir())
- assert not is_empty, 'running manim with -s flag did not render an image'
+ is_empty = not any((tmp_path / "images" / "simple_scenes").iterdir())
+ assert not is_empty, "running manim with -s flag did not render an image"
def test_s_flag(tmp_path, manim_cfg_file, simple_scenes_path):
@@ -105,8 +105,8 @@ def test_s_flag(tmp_path, manim_cfg_file, simple_scenes_path):
out, err, exit_code = capture(command)
assert exit_code == 0, err
- is_empty = not any((tmp_path / 'videos').iterdir())
- assert is_empty, 'running manim with -s flag rendered a video'
+ is_empty = not any((tmp_path / "videos").iterdir())
+ assert is_empty, "running manim with -s flag rendered a video"
- is_empty = not any((tmp_path / 'images' / 'simple_scenes').iterdir())
- assert not is_empty, 'running manim with -s flag did not render an image'
+ is_empty = not any((tmp_path / "images" / "simple_scenes").iterdir())
+ assert not is_empty, "running manim with -s flag did not render an image"