spaxel/mothership/sim
jedarden a0b49d5d9c feat(notify): add comprehensive tests for notification system
Add extensive test coverage for all notification components including:

- Floor plan renderer tests (300x300 PNG dimensions, zone boundaries at correct pixels, blob colors)
- Batching behavior tests (3 LOW events batch to 1 merged notification, URGENT bypasses batch)
- Quiet hours tests (LOW priority suppressed, URGENT bypasses, morning digest bundles queued events)
- Delivery client tests with mock HTTP servers (ntfy, pushover, gotify, webhook)
- Test endpoint integration tests with real HTTP delivery

Test coverage: 87.8% of statements (exceeds 80% target)

All renderer tests pass (dimensions, coordinates, colors)
All batching tests pass (windowing, priority bypass)
All quiet hours tests pass (queueing, bypass, digest)
All delivery client tests pass with mocks
Test endpoint integration test passes

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-04 03:00:18 -04:00

8.7 MiB
Executable file