diff --git a/tests/test_country_networks.py b/tests/test_country_networks.py index 47ced788..b8281a7a 100644 --- a/tests/test_country_networks.py +++ b/tests/test_country_networks.py @@ -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 diff --git a/tests/test_polymarket_readonly.py b/tests/test_polymarket_readonly.py index d2d180e5..742eb406 100644 --- a/tests/test_polymarket_readonly.py +++ b/tests/test_polymarket_readonly.py @@ -281,7 +281,7 @@ def test_lau_fau_shan_uses_shenzhen_market_city(): layer._build_top_temperature_buckets = _fake_build_top_temperature_buckets scan = layer.build_market_scan( - city="Lau Fau Shan", + city="shenzhen", target_date="2026-04-23", temperature_bucket={"temp": 30, "probability": 0.58}, model_probability=0.58, @@ -289,7 +289,7 @@ def test_lau_fau_shan_uses_shenzhen_market_city(): assert captured["primary_city_key"] == "shenzhen" assert captured["bucket_city_key"] == "shenzhen" - assert scan["city_key"] == "lau fau shan" + assert scan["city_key"] == "shenzhen" assert scan["market_city_key"] == "shenzhen" assert scan["selected_slug"] == "highest-temperature-in-shenzhen-on-april-23-2026-30c-or-higher" diff --git a/tests/test_telegram_hashtags.py b/tests/test_telegram_hashtags.py index e74f0648..0933b824 100644 --- a/tests/test_telegram_hashtags.py +++ b/tests/test_telegram_hashtags.py @@ -70,9 +70,11 @@ def test_singapore_is_in_telegram_push_city_lists(): assert HIGH_FREQ_AIRPORT_ICAO["singapore"] == "WSSS" -def test_shenzhen_is_removed_from_telegram_push_city_lists(): - assert "shenzhen" not in HIGH_FREQ_AIRPORT_CITIES - assert "shenzhen" not in HIGH_FREQ_AIRPORT_ICAO +def test_shenzhen_is_in_high_freq_push_as_hko_station(): + # shenzhen uses LFS / HKO 1-min data (formerly lau fau shan) + assert "shenzhen" in HIGH_FREQ_AIRPORT_CITIES + assert "shenzhen" in HIGH_FREQ_AIRPORT_ICAO + assert HIGH_FREQ_AIRPORT_ICAO["shenzhen"] == "LFS" def test_high_freq_airport_push_forces_analysis_refresh(monkeypatch):