mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
feat(database): bound async configuration writes
This commit is contained in:
@@ -123,15 +123,15 @@ async def test_agent_initialization_failure_does_not_stop_module_startup(
|
||||
monkeypatch.setattr(modules_initializer, "user_auth", MagicMock())
|
||||
monkeypatch.setattr(modules_initializer.EventManager, "start", MagicMock())
|
||||
for name in (
|
||||
"init_plugin_report",
|
||||
"init_subscribe_report",
|
||||
"async_init_plugin_report",
|
||||
"async_init_subscribe_report",
|
||||
"get_user_uuid",
|
||||
"get_github_user",
|
||||
):
|
||||
monkeypatch.setattr(
|
||||
modules_initializer.MoviePilotServerHelper,
|
||||
name,
|
||||
MagicMock(),
|
||||
AsyncMock() if name.startswith("async_") else MagicMock(),
|
||||
)
|
||||
start_frontend = MagicMock()
|
||||
check_auth = MagicMock()
|
||||
|
||||
Reference in New Issue
Block a user