修复测试:high_freq_airport_push 测试适配全城市覆盖
Tested: pytest 184 passed Directive: 测试断言从单城市精确匹配改为验证 force_refresh_observations_only 参数 + qingdao 在调用列表中
This commit is contained in:
@@ -112,7 +112,10 @@ def test_high_freq_airport_push_forces_analysis_refresh(monkeypatch):
|
|||||||
)
|
)
|
||||||
|
|
||||||
assert sent is True
|
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
|
assert bot.messages
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user