fix: 清掉无用接口和样式,并收紧登录与工号边界

This commit is contained in:
2026-11-16 11:30:59 +08:00
parent 7381b49e4c
commit 5b83b7e415
15 changed files with 232 additions and 329 deletions
+2 -2
View File
@@ -430,7 +430,7 @@ def test_paused_account_still_updates_when_opening_home() -> None:
super().__init__(login_name, password)
self._token = "yxt-1"
def home_snapshot(self) -> dict:
def home_summary(self) -> dict:
self._token = "yxt-2"
return {"name": "测试用户"}
@@ -440,7 +440,7 @@ def test_paused_account_still_updates_when_opening_home() -> None:
return exported
with SessionLocal() as db:
assert service.fetch_home(db, "paused-user", HomeClient)["name"] == "测试用户"
assert service.fetch_home_summary(db, "paused-user", HomeClient)["name"] == "测试用户"
account = db.get(Account, "paused-user")
assert account is not None
assert account.refresh_paused is True