Use realtime METAR cluster for Moscow nearby maps

This commit is contained in:
2569718930@qq.com
2026-04-18 16:28:08 +08:00
parent 8c6a7c4071
commit 25122fed4a
5 changed files with 19 additions and 21 deletions
+5 -5
View File
@@ -140,7 +140,7 @@ def test_hko_provider_marks_explicit_official_station_as_anchor():
assert snapshot["official_nearby"][0]["station_code"] == "LFS"
def test_russia_provider_prefers_official_web_rows_when_available():
def test_moscow_provider_uses_realtime_metar_cluster_not_station_archive_rows():
raw = {
"metar": {
"observation_time": "2026-04-06T10:00:00.000Z",
@@ -171,11 +171,11 @@ def test_russia_provider_prefers_official_web_rows_when_available():
snapshot = build_country_network_snapshot("moscow", raw)
assert snapshot["provider_code"] == "russia_station_web"
assert snapshot["provider_code"] == "russia_metar_cluster"
assert snapshot["official_network_status"]["available"] is True
assert snapshot["official_network_status"]["mode"] == "official_web_crawl"
assert snapshot["official_nearby"][0]["source_code"] == "ru_station_web"
assert snapshot["official_nearby"][0]["is_official"] is True
assert snapshot["official_network_status"]["mode"] == "realtime_metar_cluster"
assert snapshot["official_nearby"][0]["source_code"] == "metar_cluster"
assert snapshot["official_nearby"][0]["is_airport_station"] is True
def test_city_detail_payload_exposes_airport_and_official_network_layers():