Update tests for retired wallet monitor and trial timing

This commit is contained in:
2569718930@qq.com
2026-04-01 18:02:08 +08:00
parent 342ed77283
commit 07b2770e9d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ def test_startup_coordinator_respects_disable_flags(monkeypatch):
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 == "disabled_by_env"
assert loop_map["polymarket_wallet_activity"].reason == "retired_replaced_by_market_monitor"
def test_render_runtime_status_html_contains_key_fields():
+1 -1
View File
@@ -47,7 +47,7 @@ def test_ensure_signup_trial_grants_three_day_subscription(monkeypatch):
monkeypatch.setattr(entitlement_module.requests, "post", _fake_post)
starts_at = datetime(2026, 3, 29, 8, 0, tzinfo=timezone.utc)
starts_at = datetime.now(timezone.utc) - timedelta(hours=1)
result = service.ensure_signup_trial(
"user-1",
created_at=starts_at.isoformat(),