mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-08-05 21:41:40 +08:00
chore(lib): remove all os.path in favor to pathlib (#225)
* chore(lib): remove all os.path in favor to pathlib * fix(lib): str to path
This commit is contained in:
@ -1,13 +1,15 @@
|
||||
from pathlib import Path
|
||||
|
||||
from manim_slides.defaults import CONFIG_PATH, FFMPEG_BIN, FOLDER_PATH
|
||||
|
||||
|
||||
def test_folder_path() -> None:
|
||||
assert FOLDER_PATH == "./slides"
|
||||
assert FOLDER_PATH == Path("./slides")
|
||||
|
||||
|
||||
def test_config_path() -> None:
|
||||
assert CONFIG_PATH == ".manim-slides.toml"
|
||||
assert CONFIG_PATH == Path(".manim-slides.toml")
|
||||
|
||||
|
||||
def test_ffmpeg_bin() -> None:
|
||||
assert FFMPEG_BIN == "ffmpeg"
|
||||
assert FFMPEG_BIN == Path("ffmpeg")
|
||||
|
Reference in New Issue
Block a user