mirror of
https://ghfast.top/https://github.com/aeroxw/easy_tdx_max.git
synced 2026-09-12 16:54:20 +08:00
fix: 修复 CI ruff I001(测试文件 import 排序)
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -620,7 +620,7 @@ def test_watchlist_returns_calendar_not_refetched_outside_session(monkeypatch, t
|
||||
|
||||
def test_calendar_stale_rules():
|
||||
"""日历重取规则:含今天 / 时段外一律不重取;缺今天则按间隔重取。"""
|
||||
from easy_tdx.web.routers.watchlist import _CalendarEntry, _calendar_stale
|
||||
from easy_tdx.web.routers.watchlist import _calendar_stale, _CalendarEntry
|
||||
|
||||
today = date(2026, 9, 11)
|
||||
no_today = [d for d in _CAL if d < today] # "今天"的 bar 始终没生成
|
||||
|
||||
Reference in New Issue
Block a user