mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
refactor: 收口 V3 分层架构与插件兼容边界
This commit is contained in:
@@ -5,6 +5,7 @@ from unittest.mock import Mock
|
||||
from app.application.chain.context import ChainRuntimeContext
|
||||
from app.application.chain import context as chain_context
|
||||
from app.chain import ChainBase
|
||||
from app.runtime.extensions.module.dispatcher import ModuleInvocationDispatcher
|
||||
|
||||
|
||||
def _context() -> ChainRuntimeContext:
|
||||
@@ -18,6 +19,7 @@ def _context() -> ChainRuntimeContext:
|
||||
file_cache=Mock(),
|
||||
async_file_cache=Mock(),
|
||||
message_queue_factory=Mock(return_value=Mock()),
|
||||
module_dispatcher_factory=ModuleInvocationDispatcher,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user