fix: 히어로 상태 한 줄 자외선을 저녁 구간(일몰 2시간 전~)에도 보이게, 밤 구간에만 뺀다
This commit is contained in:
1 parent
0b8eb84b55
commit
72301e9f10
4 files changed
+8
-5
No files matched your search
@@ -60,5 +60,7 @@ def test_status_line_has_four_by_day_and_warns_only_caution():
|
||||
|
||||
|
||||
def test_status_line_drops_uv_at_night_and_missing_values():
|
||||
assert _status(HeroInput(now=NOW, night=True, humidity=25, uv=3.0, air=AirGrade.NORMAL)) == [("습도", "건조", "normal"), ("미세먼지", "보통", "normal")]
|
||||
assert _status(HeroInput(now=NOW, night=True, after_dark=True, humidity=25, uv=3.0, air=AirGrade.NORMAL)) == [("습도", "건조", "normal"), ("미세먼지", "보통", "normal")]
|
||||
# 저녁 구간(night=True, 아직 해 있음)엔 자외선이 남는다
|
||||
assert _status(HeroInput(now=NOW, night=True, uv=0.6)) == [("자외선", "낮음", "normal")]
|
||||
assert _status(HeroInput(now=NOW, night=False)) == []
|
||||
Reference in new issue
Block a user