mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-11 18:50:59 +08:00
test: 测试套件自隔离与全量离线化(collection 清零 + 杜绝真实网络) (#5873)
This commit is contained in:
8
app/testing/__init__.py
Normal file
8
app/testing/__init__.py
Normal file
@@ -0,0 +1,8 @@
|
||||
"""测试辅助工具(主程序与插件仓共享)。
|
||||
|
||||
提供测试期对 ``sys.modules`` 的临时打桩能力,保证打桩在使用后还原,避免测试间
|
||||
因残留假模块而相互污染。仅供测试使用,不参与运行时逻辑。
|
||||
"""
|
||||
from app.testing.stub import stub_modules
|
||||
|
||||
__all__ = ["stub_modules"]
|
||||
Reference in New Issue
Block a user