Skip to content

Commit 284dc29

Browse files
Add testing framework
1 parent f7c8b8f commit 284dc29

File tree

3 files changed

+79
-3
lines changed

3 files changed

+79
-3
lines changed

pyproject.toml

+11-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,17 @@ homepage="https://www.manim.community/"
2222
repository = "https://github.com/ManimCommunity/manim-forge"
2323

2424
[dependency-groups]
25-
dev = ["maturin>=1.8.0"]
25+
dev = [
26+
"maturin>=1.8.0",
27+
"pytest>=8.3.4",
28+
]
2629

2730
[tool.maturin]
2831
features = ["pyo3/extension-module"]
32+
33+
[tool.uv]
34+
# prevent constant rebuilding
35+
package = false
36+
37+
[tool.pytest.ini_options]
38+
filterwarnings = ["ignore::DeprecationWarning:pydub"]

tests/test_setup.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import manimforge as mf
2+
from manim import Camera
3+
4+
5+
def test_setup_works():
6+
old_ctx_method = Camera.set_cairo_context_path
7+
mf.setup()
8+
# this method should have been monkeypatched
9+
assert Camera.set_cairo_context_path != old_ctx_method

uv.lock

+59-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)