""" Eval: a request for the weather in detail reaches getWeather as detail=true, and a plain one does not. With detail getWeather also gives the humidity, the wind and the rain amount (2026-11-18); without it the answer stays one short sentence for the voice reply. Run: EVAL_JUDGE_MODEL=qwen3:8b ./scripts/run_evals.sh weather_detail """ import pytest from conftest import requires_judge_llm from test_weather_forecast_days import _ask def _detail(args): return (args or {}).get("detail") in (True, "true", "True") @pytest.mark.eval @requires_judge_llm class TestWeatherDetail: @pytest.mark.parametrize("query", ["부산 연제구 날씨 자세히 알려 줘", "give me the detailed weather for Busan"]) def test_asked_in_detail_detail_is_set(self, mock_config, eval_db, eval_dialogue_memory, query): args = _ask(mock_config, eval_db, eval_dialogue_memory, query) assert args is not None, "getWeather was not called" assert _detail(args), args def test_a_plain_question_is_not_detailed(self, mock_config, eval_db, eval_dialogue_memory): args = _ask(mock_config, eval_db, eval_dialogue_memory, "부산 연제구 날씨 어때?") assert args is not None, "getWeather was not called" assert not _detail(args), args