fix(weather): met.no sleet is sleet, not freezing rain

met.no's sleet symbols were mapped to WMO 66/67 (freezing rain), so the
answer said 어는 비. They now map to the WMO 4677 rain-and-snow codes
68/69 and 83/84 (진눈깨비, 진눈깨비 소나기).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-18 02:22:42 +09:00
parent d31d75f18f
commit 59a9277613
2 changed files with 17 additions and 3 deletions

View File

@@ -433,6 +433,14 @@ class TestWeatherTool:
assert WMO_CODES_KO[80] in result.reply_text
assert str(round(8.6)) in result.reply_text
@pytest.mark.parametrize("symbol", ["lightsleet", "sleet_day", "heavysleetshowers_night"])
def test_met_no_sleet_stays_sleet_not_freezing_rain(self, symbol):
from src.jarvis.tools.builtin.weather import _met_no_wmo
code = _met_no_wmo(symbol)
assert "sleet" in WMO_CODES[code].lower() or "snow" in WMO_CODES[code].lower()
assert "freezing" not in WMO_CODES[code].lower()
assert "진눈깨비" in WMO_CODES_KO[code]
@patch('requests.get')
def test_when_both_weather_services_fail_the_answer_says_so(self, mock_get):
geo = Mock(status_code=200, raise_for_status=Mock())