[loggi-xth] Add unit tests for app/utils.py (parse_iso_datetime) #124
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Bead ID:
loggi-xthType: task
Priority: P3
Status: closed
Close reason: Added tests/test_utils.py with 13 tests covering all edge cases: None/empty input, Z suffix, +00:00, naive datetimes, space-encoded + from query strings, invalid strings, and non-UTC offsets. All pass.
app/utils.py has parse_iso_datetime() — a shared utility used across routes, stats, and export — but no dedicated test file. Edge cases to test:
Low risk since the function is simple, but it's the only app/ module without test coverage.