fix: 저녁 시작을 17시보다 이르지 않게 — 겨울에 오후 3시가 저녁이던 것
This commit is contained in:
1 parent
639ca83553
commit
96e40d00c8
7 files changed
+53
-20
No files matched your search
@@ -113,6 +113,13 @@ def test_preset_copies_rules_that_fit_and_drops_the_rest():
|
||||
assert p == {"slots": ["evening"], "rain": "dry"}
|
||||
|
||||
|
||||
def test_preset_evening_starts_at_17_like_the_feed():
|
||||
"""피드와 같은 규칙: 저녁은 17시보다 이르게 시작하지 않으니 16시대는 낮."""
|
||||
rules = {"rain": {"dir": "dry"}, "temp": {"type": "range", "lo": 18, "hi": 24}}
|
||||
assert preset(_defn(rules, [{"from": 16, "to": 17}]))["slots"] == ["day"]
|
||||
assert preset(_defn(rules, [{"from": 17, "to": 19}]))["slots"] == ["evening"]
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_presets_cover_every_gak_with_valid_rules():
|
||||
async with client() as c:
|
||||
|
||||
Reference in new issue
Block a user