From 07b2770e9dbe97147edfd49d4c0d6becb52024a9 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Wed, 1 Apr 2026 18:02:08 +0800 Subject: [PATCH] Update tests for retired wallet monitor and trial timing --- tests/test_bot_runtime_coordinator.py | 2 +- tests/test_supabase_entitlement.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_bot_runtime_coordinator.py b/tests/test_bot_runtime_coordinator.py index c83eb7d1..79b3ba1a 100644 --- a/tests/test_bot_runtime_coordinator.py +++ b/tests/test_bot_runtime_coordinator.py @@ -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(): diff --git a/tests/test_supabase_entitlement.py b/tests/test_supabase_entitlement.py index bbaf5c87..259db46b 100644 --- a/tests/test_supabase_entitlement.py +++ b/tests/test_supabase_entitlement.py @@ -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(),