mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
test: 测试套件自隔离与全量离线化(collection 清零 + 杜绝真实网络) (#5873)
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
from types import ModuleType, SimpleNamespace
|
||||
import sys
|
||||
from types import SimpleNamespace
|
||||
|
||||
# The endpoint import pulls in a wide plugin/helper graph. Some optional modules are
|
||||
# not present in this test environment, so stub them before importing the endpoint.
|
||||
sys.modules.setdefault("app.helper.sites", ModuleType("app.helper.sites"))
|
||||
setattr(sys.modules["app.helper.sites"], "SitesHelper", object)
|
||||
|
||||
from app.api.endpoints.transfer import (
|
||||
manual_transfer,
|
||||
|
||||
Reference in New Issue
Block a user