清理已移除服务的残留环境变量和测试引用

- .env.example:移除 PROMETHEUS/ALERTMANAGER/GRAFANA/ALERT_RELAY 端口配置
- .env.example:移除 TELEGRAM_ALERT_* 市场提醒配置
- test_bot_runtime_coordinator:移除 trade_alert_push 断言
This commit is contained in:
2569718930@qq.com
2026-05-14 18:45:34 +08:00
parent f4a37e4bdd
commit a79abc02de
2 changed files with 1 additions and 17 deletions
-4
View File
@@ -6,7 +6,6 @@ class DummyBot:
def test_startup_coordinator_respects_disable_flags(monkeypatch):
monkeypatch.setenv("TELEGRAM_ALERT_PUSH_ENABLED", "false")
monkeypatch.setenv("POLYGON_WALLET_WATCH_ENABLED", "false")
monkeypatch.setenv("POLYMARKET_WALLET_ACTIVITY_ENABLED", "false")
monkeypatch.delenv("TELEGRAM_CHAT_ID", raising=False)
@@ -21,9 +20,6 @@ def test_startup_coordinator_respects_disable_flags(monkeypatch):
runtime = coordinator.start_all()
loop_map = runtime.loop_map()
assert loop_map["trade_alert_push"].configured_enabled is False
assert loop_map["trade_alert_push"].started is False
assert loop_map["trade_alert_push"].reason == "disabled_by_env"
assert loop_map["polygon_wallet_watch"].reason == "disabled_by_env"
assert loop_map["polymarket_wallet_activity"].reason == "retired_replaced_by_market_monitor"