feat: 管理端用户列表显示姓名和公司

This commit is contained in:
Nixevol
2026-11-18 11:53:05 +08:00
parent 032c5280e7
commit 199960276a
8 changed files with 86 additions and 1 deletions
+4
View File
@@ -498,6 +498,8 @@ def test_check_skips_empty_credential_and_updates_saved_one(monkeypatch) -> None
saved = next(item for item in body if item["employee_id"] == "saved-user")
assert set(saved) == {
"employee_id",
"user_name",
"company",
"has_credential",
"refresh_paused",
"last_refresh_at",
@@ -524,6 +526,8 @@ def test_check_skips_empty_credential_and_updates_saved_one(monkeypatch) -> None
assert saved["refresh_paused"] is False
assert saved["credential_valid"] is True
assert saved["month_hours"] == ""
assert saved["user_name"] == ""
assert saved["company"] == ""
assert isinstance(saved["last_refresh_at"], str)
calls.clear()
again = client.get("/api/admin/users")