修复 lau fau shan → shenzhen 重命名导致的 3 个测试失败

This commit is contained in:
2569718930@qq.com
2026-05-25 06:17:10 +08:00
parent 804b720b3c
commit ccc21b7e9d
3 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -292,13 +292,13 @@ def test_hko_provider_marks_explicit_official_station_as_anchor():
raw = {
"settlement_current": {
"station_code": "LFS",
"station_name": "Lau Fau Shan",
"station_name": "shenzhen",
"observation_time": "2026-04-06T10:00:00+08:00",
"current": {"temp": 25.0},
}
}
snapshot = build_country_network_snapshot("lau fau shan", raw)
snapshot = build_country_network_snapshot("shenzhen", raw)
assert snapshot["provider_code"] == "hongkong_hko"
assert snapshot["settlement_station"]["is_official_station_anchor"] is True