Fix mobile key handling and improve coverage

This commit is contained in:
GitHub Copilot
2026-01-30 00:43:35 +00:00
parent 417471d337
commit 40535f448d
9 changed files with 452 additions and 45 deletions
+8 -5
View File
@@ -330,11 +330,14 @@ class TestHandleEventWithThemeLabel:
async def mock_request(method, path):
if "/containers/" in path and "/json" in path:
import json
return 200, json.dumps({
"Id": "abc123",
"Name": "/themed-container",
"Config": {"Labels": {THEME_LABEL: "monokai"}},
})
return 200, json.dumps(
{
"Id": "abc123",
"Name": "/themed-container",
"Config": {"Labels": {THEME_LABEL: "monokai"}},
}
)
return 404, ""
watcher._docker_request = mock_request