From 2f1e07b7b1141ed17f738dd5654b59c17f3481e2 Mon Sep 17 00:00:00 2001 From: eezd Date: Sat, 31 Oct 2026 22:15:15 +0800 Subject: [PATCH] Align API smoke checks with package summary routes Check the current summary endpoint across all four supported windows, including 72 hours, while retaining invalid-window rejection. This fixes the obsolete events route that stopped isolated CI acceptance. --- scripts/smoke_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/smoke_app.py b/scripts/smoke_app.py index 728772b..ceb4800 100644 --- a/scripts/smoke_app.py +++ b/scripts/smoke_app.py @@ -46,8 +46,8 @@ async def main(): response.raise_for_status() assert response.json()['code'] == 0, path assert 'CI synthetic news' in (await client.get('/api/news?q=CI')).text - for endpoint in ('overview', 'events'): - for hours in (24, 48, 168): + for endpoint in ('overview', 'summaries'): + for hours in (24, 48, 72, 168): response = await client.get('/api/risk/'+endpoint, params={'hours': hours}) response.raise_for_status() assert response.json()['code'] == 0