calendar: add overnight BST event snapshot tests #85

Merged
JakeHillion merged 1 commits from feature/szlnkuxooquk into main 2026-05-17 13:28:12 +01:00
1 Commits
Author SHA1 Message Date
JakeHillion d2a4b5941d calendar: add overnight BST event snapshot tests
CI / nix (push) Successful in 2m14s
A user reported an event from 18:30 BST Sunday 17th May 2026 to
02:45 BST Monday 18th May 2026 was not visible to the bot when
querying Sunday, Monday, or the Sunday->Monday range.

Add three new testcontainers/insta snapshot tests covering:
- single-day query for Sunday (start_date = 2026-05-17)
- single-day query for Monday (start_date = 2026-05-18)
- two-day range query (2026-05-17 to 2026-05-18)

The event is stored with a proper Europe/London VTIMEZONE and
DTSTART/DTEND in BST local time so the test matches real-world
ICS data. Against the Radicale test server the event is found in
all three queries, so these serve as regression tests rather than
bug-reproduction tests.

Test plan:
- CI
- cargo test test_overnight_event -- all 3 tests pass
- nix flake check -- clippy, doc, formatting, and package checks pass
2026-05-17 13:20:20 +01:00