Skip to content

World's first open-source, agentic video production system. 12 production pipelines, 100+ tools, 700+ agent skill and production-knowledge files. Turn your AI coding assistant into a full video production studio.

fix: restore requests module after test_lazy_imports_requests

Yiyabo8414c485adc1
diff --git a/tests/contracts/test_jimeng_video.py b/tests/contracts/test_jimeng_video.py
index a5fd0f74..5cbf5dde 100644
--- a/tests/contracts/test_jimeng_video.py
+++ b/tests/contracts/test_jimeng_video.py
@@ -107,12 +107,12 @@ class TestContract:
def test_has_user_visible_verification(self):
assert len(JimengVideo().user_visible_verification) > 0
- def test_lazy_imports_requests(self):
+ def test_lazy_imports_requests(self, monkeypatch):
import importlib
import sys
mod_name = "tools.video.jimeng_video"
if "requests" in sys.modules:
- del sys.modules["requests"]
+ monkeypatch.delitem(sys.modules, "requests")
importlib.reload(sys.modules[mod_name])
def test_estimate_cost_returns_float(self):