From ccc21b7e9d55b19cce179ed7e33dd9a17d8ab78d Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Mon, 25 May 2026 06:17:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20lau=20fau=20shan=20?= =?UTF-8?q?=E2=86=92=20shenzhen=20=E9=87=8D=E5=91=BD=E5=90=8D=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=203=20=E4=B8=AA=E6=B5=8B=E8=AF=95=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_country_networks.py | 4 ++-- tests/test_polymarket_readonly.py | 4 ++-- tests/test_telegram_hashtags.py | 8 +++++--- 3 files changed, 9 insertions(+), 7 deletions(-) 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):