diff --git a/tests/test_api_sources.py b/tests/test_api_sources.py index c48ed65..28d1a11 100644 --- a/tests/test_api_sources.py +++ b/tests/test_api_sources.py @@ -39,7 +39,10 @@ async def test_schedule_status_shape(client): resp = await client.get("/api/sources/schedule-status") assert resp.status_code == 200 body = await resp.get_json() - assert set(body) == {"last_tick_at", "next_due_at", "due_now", "auto_sources"} + assert set(body) == { + "last_tick_at", "next_due_at", "due_now", "auto_sources", + "platform_cooldowns", + } assert isinstance(body["due_now"], int) assert isinstance(body["auto_sources"], int) diff --git a/tests/test_api_system_activity.py b/tests/test_api_system_activity.py index f5832ef..8191a8e 100644 --- a/tests/test_api_system_activity.py +++ b/tests/test_api_system_activity.py @@ -60,7 +60,10 @@ async def test_summary_returns_rollup_shape(client, monkeypatch): assert body["queued_total"] == 3 # only ml has a non-zero depth assert isinstance(body["running"], int) assert isinstance(body["failing"], int) - assert set(body["scheduler"]) == {"last_tick_at", "next_due_at", "due_now", "auto_sources"} + assert set(body["scheduler"]) == { + "last_tick_at", "next_due_at", "due_now", "auto_sources", + "platform_cooldowns", + } @pytest.mark.asyncio