feat: 새 각 4개 추가 (야구·공부·넷플릭스·군밤)

This commit is contained in:
minaChoi committed 2026-10-06 10:02:55 +09:00
1 parent 14ddebd040
commit d764d0e9ed
11 files changed
+217 -6

No files matched your search

+2 -2
View File
@@ -39,11 +39,11 @@ def fakes(monkeypatch):
@pytest.mark.anyio
async def test_index_list_ranks_all_23_with_3_day_trend(fakes):
async def test_index_list_ranks_all_27_with_3_day_trend(fakes):
async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as client:
body = (await client.get("/v1/index/list", params={"region": REGION})).json()
assert body["result"]["success"] is True
assert len(body["items"]) == 23 and len(body["top3"]) == 3
assert len(body["items"]) == 27 and len(body["top3"]) == 3
scores = [i["score"] for i in body["items"]]
assert scores == sorted(scores, reverse=True)
assert all(len(i["trend"]) == 3 for i in body["items"])