fix: 단풍 지도 남이섬 중복 제거(67곳), 날짜 따라 깨지던 노을 칸·방위각 테스트를 계절과 상관없이 맞게
This commit is contained in:
1 parent
746aa4ba92
commit
882c7f06dc
5 files changed
+12
-15
No files matched your search
@@ -49,7 +49,8 @@ async def test_sky_view_scores_three_days_with_spots(monkeypatch, clean):
|
||||
assert body["sunset"]["confidence"] == 1
|
||||
assert len(body["days"]) == 3
|
||||
assert [s["name"] for s in body["spots"]] == ["망원한강공원", "선유도공원", "하늘공원"]
|
||||
assert 255 <= body["sunset_azimuth"] <= 280
|
||||
# 서울 해 지는 방위는 한 해 동안 240°(동지)~300°(하지) 사이
|
||||
assert 240 <= body["sunset_azimuth"] <= 300
|
||||
plan = body["plan"]
|
||||
assert plan["verdict"] == "go" and plan["headline"] == "나가 볼 만해요" and plan["when"] in ("오늘", "내일")
|
||||
assert "적당히" in plan["reason"]
|
||||
|
||||
Reference in new issue
Block a user