feat: 새 각 4개 추가 (야구·공부·넷플릭스·군밤)
This commit is contained in:
1 parent
14ddebd040
commit
d764d0e9ed
11 files changed
+217
-6
No files matched your search
@@ -43,7 +43,7 @@ async def test_feed_assembles_hero_stories_posts_and_bands(offline):
|
||||
body = (await client.get("/v1/feed", params={"region": REGION})).json()
|
||||
assert body["result"]["success"] is True
|
||||
assert body["hero"]["temp_c"] == 20 and body["hero"]["top1"]["rank"] == 1 and "top3" not in body["hero"]
|
||||
assert len(body["stories"]) == 23
|
||||
assert len(body["stories"]) == 27
|
||||
weather = next(p for p in body["posts"] if p["post_type"] == PostType.WEATHER.value)
|
||||
assert [s["kind"] for s in weather["slides"]] == ["hours", "rows"]
|
||||
assert len(weather["slides"][0]["hours"]) == 8
|
||||
|
||||
Reference in new issue
Block a user