Edit a reminder to noon, not to the same hour three days on #1032
No reviewers
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo!1032
Loading…
Reference in a new issue
No description provided.
Delete branch "dst-reminder-edit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
test_editing_a_reminder_moves_it_and_unstamps_itfailed in CI with a 200 where it expected the 302 of a saved form.Cause
The test posts "now, three days on" as the new time. Run at 02:30 Paris time on 22 October (00:30 UTC), that is 02:30 on Sunday 25 October, the hour the clocks go back and which happens twice. The form refuses a time that is ambiguous, so it answered 200 with an error. The test failed on this machine too at 00:30 UTC; it fails for the hour from 02:00 to 03:00 Paris time on the days of the year that land three days before the change, and passes the rest of the time.
What changed
The test posts noon, three days on, a time that no clock change repeats.
Tests
tests/test_deadlines.py: 48 passed, run at 00:31 UTC, inside the window where the old test fails.The other tests that build a time from
localtime(...) + days(test_interviews.py,test_appointments.py,test_insights.py) carry the same hazard only if their offset lands on the repeated hour; none failed in the same run, so I have left them alone.Library check
None needed.
🤖 Generated with Claude Code