From 4c973148050ca7f71140296464d12fc20ea083b0 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Sat, 23 May 2026 20:44:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=EF=BC=9Ahi?= =?UTF-8?q?gh=5Ffreq=5Fairport=5Fpush=20=E6=B5=8B=E8=AF=95=E9=80=82?= =?UTF-8?q?=E9=85=8D=E5=85=A8=E5=9F=8E=E5=B8=82=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tested: pytest 184 passed Directive: 测试断言从单城市精确匹配改为验证 force_refresh_observations_only 参数 + qingdao 在调用列表中 --- tests/test_telegram_hashtags.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_telegram_hashtags.py b/tests/test_telegram_hashtags.py index 932d893c..e74f0648 100644 --- a/tests/test_telegram_hashtags.py +++ b/tests/test_telegram_hashtags.py @@ -112,7 +112,10 @@ def test_high_freq_airport_push_forces_analysis_refresh(monkeypatch): ) assert sent is True - assert calls == [("qingdao", False, True)] + # All cities processed with force_refresh_observations_only=True + assert len(calls) >= 1 + assert all(c[2] is True for c in calls) + assert ("qingdao", False, True) in calls assert bot.messages