From 9f354a0647ca4631f268d360f990572afa55eea4 Mon Sep 17 00:00:00 2001 From: Spencer McGuire Date: Wed, 21 Oct 2026 14:22:12 -0600 Subject: [PATCH] tests: /me session shape includes lock_minutes Co-Authored-By: Claude Opus 5.5 --- tests/server/test_signin_api.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/server/test_signin_api.py b/tests/server/test_signin_api.py index 04e9103..3eb2771 100644 --- a/tests/server/test_signin_api.py +++ b/tests/server/test_signin_api.py @@ -33,8 +33,18 @@ def test_password_signin_and_me_shape(pg_client: TestClient, pg_settings: Settin "email": "clerk.clara@example.test", } assert me["roles"] == ["clerical"] and me["screens"] == ["clerical"] and me["groups"] == ["PS-Clerical"] - assert set(me["session"]) == {"id", "kind", "created_at", "expires_at", "locked", "locked_since", "device"} + assert set(me["session"]) == { + "id", + "kind", + "created_at", + "expires_at", + "locked", + "locked_since", + "lock_minutes", + "device", + } assert me["session"]["kind"] == "password" and me["session"]["locked"] is False + assert me["session"]["lock_minutes"] == 60 # Clerical: the desk minutes (issue #45) assert me["session"]["device"] is None and me["session"]["locked_since"] is None assert me["pin"] == {"set": False, "disabled": False} and me["can_register_device"] is False assert pg_client.get("/api/auth/me").json() == me