Add Manila Karachi and Masroor weather sources

This commit is contained in:
2569718930@qq.com
2026-04-16 16:43:37 +08:00
parent 46b0e63ffd
commit fd2b870d6a
4 changed files with 130 additions and 0 deletions
+12
View File
@@ -1,7 +1,19 @@
from src.data_collection.country_networks import build_country_network_snapshot
from src.data_collection.city_registry import ALIASES, CITY_REGISTRY
from web.analysis_service import _build_city_detail_payload
def test_new_south_asia_city_registry_entries_are_wired():
assert CITY_REGISTRY["manila"]["settlement_source"] == "wunderground"
assert CITY_REGISTRY["manila"]["settlement_station_code"] == "RPLL"
assert CITY_REGISTRY["karachi"]["settlement_source"] == "wunderground"
assert CITY_REGISTRY["karachi"]["settlement_station_code"] == "OPKC"
assert CITY_REGISTRY["masroor air base"]["icao"] == "OPMR"
assert ALIASES["rpll"] == "manila"
assert ALIASES["opkc"] == "karachi"
assert ALIASES["opmr"] == "masroor air base"
def test_turkey_mgm_provider_returns_official_nearby_rows():
raw = {
"metar": {