feat: 새 각 트로트각·싱잉인더레인각
This commit is contained in:
1 parent
4daad2ecc5
commit
2720a23483
2 files changed
+129
-1
No files matched your search
@@ -3616,5 +3616,133 @@
|
||||
"sort_order": 49,
|
||||
"priority": 3,
|
||||
"months": []
|
||||
},
|
||||
{
|
||||
"code": "trot",
|
||||
"name": "트로트각",
|
||||
"icon": "picnic",
|
||||
"category": 1,
|
||||
"is_fun": true,
|
||||
"is_core": false,
|
||||
"has_detail": true,
|
||||
"description": "오전 10시~오후 5시, 나들이 가며 트로트 크게 틀고 싶은 정도",
|
||||
"windows": [
|
||||
{
|
||||
"from": 10,
|
||||
"to": 17
|
||||
}
|
||||
],
|
||||
"weight_temp": 30,
|
||||
"weight_rain": 25,
|
||||
"weight_wind": 0,
|
||||
"weight_humidity": 0,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 15,
|
||||
"weight_view": 0,
|
||||
"weight_time": 30,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "range",
|
||||
"lo": 15,
|
||||
"hi": 25
|
||||
},
|
||||
"rain": {
|
||||
"dir": "dry"
|
||||
},
|
||||
"wind": {
|
||||
"type": "ignore"
|
||||
},
|
||||
"humidity": {
|
||||
"type": "ignore"
|
||||
},
|
||||
"sun": {
|
||||
"zero": 0.2,
|
||||
"full": 0.9
|
||||
},
|
||||
"time": {
|
||||
"type": "weekday",
|
||||
"sat": 100,
|
||||
"sun": 100,
|
||||
"holiday": 100,
|
||||
"default": 40
|
||||
}
|
||||
},
|
||||
"zero_rules": [
|
||||
{
|
||||
"field": "rain",
|
||||
"op": "==",
|
||||
"value": "yes",
|
||||
"cap": 20
|
||||
}
|
||||
],
|
||||
"limit_description": "노래 취향은 반영하지 못해요",
|
||||
"sentences": {
|
||||
"0": "오늘은 조용히 집에서 쉬어요.",
|
||||
"30": "날은 그럭저럭, 흥얼흥얼 한 곡만.",
|
||||
"60": "볕 좋은 날, 꺾기 한 소절 나와요.",
|
||||
"80": "관광버스 부르는 날씨, 트로트 메들리 시작!"
|
||||
},
|
||||
"sort_order": 50,
|
||||
"priority": 3,
|
||||
"months": []
|
||||
},
|
||||
{
|
||||
"code": "singing_rain",
|
||||
"name": "싱잉인더레인각",
|
||||
"icon": "umbrella",
|
||||
"category": 1,
|
||||
"is_fun": true,
|
||||
"is_core": false,
|
||||
"has_detail": true,
|
||||
"description": "오후 5시~10시, 비 오는 날 우산 쓰고 노래하며 걷기 좋은 정도",
|
||||
"windows": [
|
||||
{
|
||||
"from": 17,
|
||||
"to": 22
|
||||
}
|
||||
],
|
||||
"weight_temp": 30,
|
||||
"weight_rain": 50,
|
||||
"weight_wind": 15,
|
||||
"weight_humidity": 0,
|
||||
"weight_air": 0,
|
||||
"weight_uv": 0,
|
||||
"weight_sun": 0,
|
||||
"weight_view": 0,
|
||||
"weight_time": 5,
|
||||
"factor_rules": {
|
||||
"temp": {
|
||||
"type": "range",
|
||||
"lo": 15,
|
||||
"hi": 25
|
||||
},
|
||||
"rain": {
|
||||
"dir": "wet"
|
||||
},
|
||||
"wind": {
|
||||
"type": "calm",
|
||||
"ok": 3,
|
||||
"limit": 10
|
||||
},
|
||||
"humidity": {
|
||||
"type": "ignore"
|
||||
},
|
||||
"time": {
|
||||
"type": "fixed",
|
||||
"value": 100
|
||||
}
|
||||
},
|
||||
"zero_rules": [],
|
||||
"limit_description": "빗길 미끄러움은 반영하지 못해요",
|
||||
"sentences": {
|
||||
"0": "비가 없어요. 노래는 다음 비 오는 날에!",
|
||||
"30": "빗방울은 조금, 콧노래 정도만.",
|
||||
"60": "우산 들고 첨벙첨벙 걷기 좋은 비예요.",
|
||||
"80": "포근한 빗속, 우산 돌리며 노래하고 싶은 밤!"
|
||||
},
|
||||
"sort_order": 51,
|
||||
"priority": 3,
|
||||
"months": []
|
||||
}
|
||||
]
|
||||
@@ -61,7 +61,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"]) == 38
|
||||
assert len(body["stories"]) == 40
|
||||
assert body["hero"]["weather_score"] == body["hero"]["weather_slots"][body["slot"]]
|
||||
assert all(g["slots"][body["slot"]] == g["score"] and g["slot_ranks"][body["slot"]] == g["rank"] for g in body["stories"] if g["active"])
|
||||
weather = next(p for p in body["posts"] if p["post_type"] == PostType.WEATHER.value)
|
||||
|
||||
Reference in new issue
Block a user