← 返回網站更新紀錄
Site Changelog
提交原始紀錄
新增 AeroTime 航空新聞來源
- SHA
ed12f591b06a388aa0dabb32551b7707d2547f5f
- 提交時間
- 作者
- nnneeeooo-nnneeeooo
- 提交者
- nnneeeooo-nnneeeooo
變更檔案 (2)
-
pipeline/common.py
modified · +12 / −0
-
tests/test_sources.py
added · +22 / −0
完整差異
@@ -279,6 +279,18 @@ def group_has_material(group: dict) -> bool:\n "en": "Global aviation news & analysis",\n },\n },\n+ "aerotime": {\n+ "name": "AeroTime",\n+ "kind": "media",\n+ "fmt": "RSS",\n+ "url": "https://www.aerotime.aero",\n+ "endpoint": "https://www.aerotime.aero/feed",\n+ "type": "rss",\n+ "cover": {\n+ "zh": "全球航空新聞、產業動態與分析",\n+ "en": "Global aviation news, industry updates & analysis",\n+ },\n+ },\n "cnataiwan": {\n "name": "中央社 CNA",\n "kind": "media",\n@@ -0,0 +1,22 @@\n+"""Source-registry regression tests."""\n+from __future__ import annotations\n+\n+import sys\n+from pathlib import Path\n+\n+REPO = Path(__file__).resolve().parent.parent\n+sys.path.insert(0, str(REPO / "pipeline"))\n+\n+import common # noqa: E402\n+\n+\n+def test_aerotime_is_a_primary_rss_source() -> None:\n+ source = common.SOURCES["aerotime"]\n+\n+ assert source["name"] == "AeroTime"\n+ assert source["kind"] == "media"\n+ assert source["fmt"] == "RSS"\n+ assert source["type"] == "rss"\n+ assert source["url"] == "https://www.aerotime.aero"\n+ assert source["endpoint"] == "https://www.aerotime.aero/feed"\n+ assert source.get("public", True) is True