test: add unit tests for country network snapshots, city time zone mappings, and METAR data source logic

This commit is contained in:
2569718930@qq.com
2026-05-26 09:48:46 +08:00
parent dd72908e0e
commit 4d103a7a38
+2 -2
View File
@@ -337,9 +337,9 @@ def test_moscow_provider_uses_realtime_metar_cluster_not_station_archive_rows():
snapshot = build_country_network_snapshot("moscow", raw)
assert snapshot["provider_code"] == "russia_metar_cluster"
assert snapshot["provider_code"] == "global_metar"
assert snapshot["official_network_status"]["available"] is True
assert snapshot["official_network_status"]["mode"] == "realtime_metar_cluster"
assert snapshot["official_network_status"]["mode"] == "fallback_metar_cluster"
assert snapshot["official_nearby"][0]["source_code"] == "metar_cluster"
assert snapshot["official_nearby"][0]["is_airport_station"] is True