test: a reader's zone comes from their account; a London expiry reads BST or GMT (#6350)
CI / lint (push) Successful in 3s
CI / unit (push) Successful in 1m45s
CI / integration (push) Successful in 1m49s
CI / publish (push) Successful in 1m21s

The change-form test set the zone on the session, which the auth middleware
resets from the account on every request. The password reset test asserted
BST, which stopped being London's zone name on 25 Oct.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 21:39:14 -04:00
co-authored by Claude Opus 5.5
parent 3899e0e299
commit 1ea86c0330
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -162,7 +162,8 @@ def test_a_forgotten_password_is_reset_from_the_emailed_link(app, monkeypatch):
mine = to(sent, f"{name}@example.com", f"{sso_name}@example.com", f"nobody-{uid[:8]}@example.com")
assert [m["To"] for m in mine] == [f"{name}@example.com"]
text = mine[0].get_body(("plain",)).get_content()
assert name in text and "BST" in text
# In the account's zone, not UTC: London's name for it, summer or winter.
assert name in text and re.search(r"\d\d:\d\d (BST|GMT)\b", text)
key = _KEY.search(text).group(1)
page = await (await guest.get(f"/reset/{key}")).get_data(as_text=True)