修复 CI: 适配 MobileCityPicker 测试断言 + 清理 f-string 和无用 import
- removedMonitorRunwayTabs.test.ts: 检查 MobileCityPicker 替代旧 scan-mobile-city-list-view - stableServerRefreshPolicy.test.ts: 同上,MobileCityPicker 替代旧视图标识 - scan_forum_topics.py: 移除无占位符的 f-string 和无用 json import
This commit is contained in:
+2
-2
@@ -44,9 +44,9 @@ export function runTests() {
|
||||
);
|
||||
assert(
|
||||
shellPartsSource.includes('"city-list"') &&
|
||||
dashboardSource.includes("scan-mobile-city-list-view") &&
|
||||
dashboardSource.includes("MobileCityPicker") &&
|
||||
dashboardSource.includes('setActiveView("city-list")'),
|
||||
"mobile web should expose the lightweight city-list entry view",
|
||||
"mobile web should expose the city-list view via MobileCityPicker",
|
||||
);
|
||||
assert(
|
||||
!dashboardSource.includes('setActiveView("monitor")') &&
|
||||
|
||||
+3
-3
@@ -37,10 +37,10 @@ export function runTests() {
|
||||
"web auto refresh must read cached scan data instead of forcing a full server scan",
|
||||
);
|
||||
assert(
|
||||
dashboardSource.includes("scan-mobile-city-list-view") &&
|
||||
dashboardSource.includes("MobileCityPicker") &&
|
||||
dashboardSource.includes("MapCanvas") &&
|
||||
dashboardSource.indexOf("scan-mobile-city-list-view") < dashboardSource.indexOf("scan-map-view"),
|
||||
"mobile city list should be the lightweight entry before the optional map view",
|
||||
dashboardSource.indexOf("MobileCityPicker") < dashboardSource.indexOf("MapCanvas"),
|
||||
"mobile city list should use MobileCityPicker before the optional map view",
|
||||
);
|
||||
assert(
|
||||
airportEvidenceSource.includes("FOCUS_RUNWAY_PAIRS") &&
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""扫描群组内所有 Forum Topic,打印名称和 thread_id。"""
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||
@@ -52,7 +51,7 @@ def main() -> int:
|
||||
print("未设置 TELEGRAM_BOT_TOKEN", file=sys.stderr)
|
||||
return 1
|
||||
|
||||
print(f"扫描群组话题...")
|
||||
print("扫描群组话题...")
|
||||
topics = []
|
||||
with ThreadPoolExecutor(max_workers=10) as pool:
|
||||
futures = {pool.submit(_try_get_topic, tid): tid for tid in range(1, 101)}
|
||||
|
||||
Reference in New Issue
Block a user