human hand off bug
This commit is contained in:
parent
223f846782
commit
6e7a0b9539
22 changed files with 1040 additions and 336 deletions
|
|
@ -17,6 +17,15 @@ def test_cursor_round_trip_preserves_sort_key():
|
|||
assert entry_id == entry["_id"]
|
||||
|
||||
|
||||
def test_naive_cursor_timestamp_is_treated_as_utc():
|
||||
naive = datetime(2026, 8, 9, 12, 30)
|
||||
created_at, _entry_id = decode_cursor(
|
||||
encode_cursor({"_id": ObjectId(), "created_at": naive})
|
||||
)
|
||||
assert created_at.tzinfo is not None
|
||||
assert created_at == datetime(2026, 8, 9, 12, 30, tzinfo=timezone.utc)
|
||||
|
||||
|
||||
def test_summary_uses_account_mailbox_read_state():
|
||||
now = datetime(2026, 8, 9, 12, 30, tzinfo=timezone.utc)
|
||||
message_id = ObjectId()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue