fix: 저녁 시작을 17시보다 이르지 않게 — 겨울에 오후 3시가 저녁이던 것
This commit is contained in:
1 parent
639ca83553
commit
96e40d00c8
7 files changed
+53
-20
No files matched your search
@@ -114,10 +114,10 @@ def test_running_muggy_morning_does_not_exceed_original_weather_score():
|
||||
|
||||
|
||||
def test_now_slot_summary_shows_current_hour_not_middle_of_rest():
|
||||
"""오후 4시 10분이면 지금 구간 줄은 남은 16~18시의 가운데(5시)가 아니라 지금(4시) 날씨로."""
|
||||
"""오후 5시 10분이면 지금 구간 줄은 남은 17~19시의 가운데(6시)가 아니라 지금(5시) 날씨로."""
|
||||
start = kst_midnight(SAT)
|
||||
hourly = _hourly(SAT) | _hourly(SAT + timedelta(days=1))
|
||||
sunset = start + timedelta(hours=17, minutes=30)
|
||||
results = slot_results(RUNNING, SAT, REGION, hourly, {}, CTX, sunset, now=start + timedelta(hours=16, minutes=10))
|
||||
assert results["evening"].summary.startswith("오후 4시"), results["evening"].summary
|
||||
assert results["night"].summary.startswith("오후 4시") is False
|
||||
sunset = start + timedelta(hours=19)
|
||||
results = slot_results(RUNNING, SAT, REGION, hourly, {}, CTX, sunset, now=start + timedelta(hours=17, minutes=10))
|
||||
assert results["evening"].summary.startswith("오후 5시"), results["evening"].summary
|
||||
assert results["night"].summary.startswith("오후 5시") is False
|
||||
Reference in new issue
Block a user