mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-05-20 20:16:30 +08:00

* chore(tests): adding tests for Qt widgets * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: reset WINDOW name * chore(tests): addign tests * chore: adding more tests * fix how bin existence is checked * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: which takes str * more tests! * todo: fix * change verbosity in tests --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
23 lines
502 B
Python
23 lines
502 B
Python
import shutil
|
|
from pathlib import Path
|
|
|
|
from manim_slides.defaults import CONFIG_PATH, FFMPEG_BIN, FOLDER_PATH
|
|
|
|
|
|
def test_folder_path() -> None:
|
|
assert FOLDER_PATH == Path("./slides")
|
|
|
|
|
|
def test_config_path() -> None:
|
|
assert CONFIG_PATH == Path(".manim-slides.toml")
|
|
|
|
|
|
def test_ffmpeg_bin() -> None:
|
|
assert FFMPEG_BIN == Path("ffmpeg")
|
|
|
|
|
|
def test_ffmpeg_bin_exists() -> None:
|
|
assert (
|
|
shutil.which(str(FFMPEG_BIN)) is not None
|
|
), "If this fails, many other tests will fail"
|