mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor: 收口 V3 分层架构与插件兼容边界
This commit is contained in:
@@ -11,6 +11,7 @@ setattr(sys.modules["transmission_rpc"], "File", object)
|
||||
|
||||
from app.chain import ChainBase
|
||||
from app.application.chain.context import ChainRuntimeContext
|
||||
from app.runtime.extensions.module.dispatcher import ModuleInvocationDispatcher
|
||||
from app.schemas import RateLimitExceededException
|
||||
|
||||
|
||||
@@ -66,6 +67,7 @@ class ChainRateLimitTest(unittest.TestCase):
|
||||
file_cache=Mock(),
|
||||
async_file_cache=Mock(),
|
||||
message_queue_factory=lambda _callback: Mock(),
|
||||
module_dispatcher_factory=ModuleInvocationDispatcher,
|
||||
)
|
||||
)
|
||||
return chain
|
||||
|
||||
Reference in New Issue
Block a user