fix: 单个检查也刷新本月学时
This commit is contained in:
@@ -528,7 +528,10 @@ def test_check_skips_empty_credential_and_updates_saved_one(monkeypatch) -> None
|
||||
assert saved["has_credential"] is True
|
||||
assert saved["refresh_paused"] is False
|
||||
assert saved["credential_valid"] is True
|
||||
assert saved["month_hours"] == ""
|
||||
from euniv.study_window import month_key
|
||||
|
||||
assert saved["month_hours"] == "660"
|
||||
assert saved["hours_month"] == month_key()
|
||||
assert saved["user_name"] == "莫英达"
|
||||
assert saved["company"] == "广州瀚信广州处"
|
||||
assert isinstance(saved["last_refresh_at"], str)
|
||||
|
||||
Reference in New Issue
Block a user