mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-29 12:06:51 +08:00
refactor: use explicit runtime facade getters
This commit is contained in:
@@ -229,7 +229,7 @@ def test_plugin_static_file_requires_resource_token_by_default(monkeypatch):
|
||||
"""返回插件认证入口列表。"""
|
||||
return []
|
||||
|
||||
monkeypatch.setattr(plugin_endpoint, "PluginManager", FakePluginManager)
|
||||
monkeypatch.setattr(plugin_endpoint, "get_plugin_manager", FakePluginManager)
|
||||
monkeypatch.setattr(plugin_endpoint, "verify_resource_token", lambda token: calls.append(token))
|
||||
|
||||
plugin_endpoint._verify_plugin_static_file_access(
|
||||
@@ -259,7 +259,7 @@ def test_plugin_auth_remote_files_allow_anonymous_bootstrap(monkeypatch):
|
||||
}
|
||||
]
|
||||
|
||||
monkeypatch.setattr(plugin_endpoint, "PluginManager", FakePluginManager)
|
||||
monkeypatch.setattr(plugin_endpoint, "get_plugin_manager", FakePluginManager)
|
||||
monkeypatch.setattr(plugin_endpoint, "verify_resource_token", lambda token: calls.append(token))
|
||||
|
||||
plugin_endpoint._verify_plugin_static_file_access(
|
||||
|
||||
Reference in New Issue
Block a user