Align API smoke checks with package summary routes
Development CI / check-and-build (push) Successful in 53s
GitHub Git mirror / mirror (push) Successful in 5s
Development CI / deploy-development (push) Failing after 7s

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.
This commit is contained in:
eezd committed 2026-10-31 22:15:15 +08:00
1 parent 95c5d77133
commit 2f1e07b7b1
1 file changed
+2 -2
+2 -2
View File
@@ -46,8 +46,8 @@ async def main():
response.raise_for_status() response.raise_for_status()
assert response.json()['code'] == 0, path assert response.json()['code'] == 0, path
assert 'CI synthetic news' in (await client.get('/api/news?q=CI')).text assert 'CI synthetic news' in (await client.get('/api/news?q=CI')).text
for endpoint in ('overview', 'events'): for endpoint in ('overview', 'summaries'):
for hours in (24, 48, 168): for hours in (24, 48, 72, 168):
response = await client.get('/api/risk/'+endpoint, params={'hours': hours}) response = await client.get('/api/risk/'+endpoint, params={'hours': hours})
response.raise_for_status() response.raise_for_status()
assert response.json()['code'] == 0 assert response.json()['code'] == 0