afterhours-shift-manager/tests
seahaven-openswe[bot] eb78a98de0
[#133] Expand /oncall date parser to accept more formats (#137)
* Expand /oncall date parser to accept more formats

Users entering everyday forms like 7/3/26 hit a generic parse
failure because the parser only accepted four-digit years and a
bare m/d. Add two-digit-year and month-name (with optional
ordinal/year) formats, treating explicit-year inputs as fixed and
keeping the year-less roll-forward for bare m/d. Update the help
text and per-command parse hints to match.

Refs: #133

* Add dash 4-digit year format and pin year boundary

Dash inputs like 7-3-2026 previously returned None because only the
slash variant had a 4-digit-year format. Add %m-%d-%Y so dash and slash
behave alike, and pin the two-digit-year century boundary with a test.

Refs: #133

---------

Co-authored-by: amoussa1229 <166072409+amoussa1229@users.noreply.github.com>
2026-06-26 15:07:02 -04:00
..
holiday_router Fix holiday router 3CX IVR calls (Receptionists entity, not IVRs) (#124) 2026-06-17 12:04:10 -04:00
release_notifier Add changelog-driven releases and App Home tab (#112) 2026-06-11 19:41:31 -04:00
ring_scheduler Add pytest suite and wire it into CI (#85) (#86) 2026-06-01 19:07:08 -04:00
roster_sync Add pytest suite and wire it into CI (#85) (#86) 2026-06-01 19:07:08 -04:00
scripts Add changelog-driven releases and App Home tab (#112) 2026-06-11 19:41:31 -04:00
shared Fix holiday router 3CX IVR calls (Receptionists entity, not IVRs) (#124) 2026-06-17 12:04:10 -04:00
slack_bot [#133] Expand /oncall date parser to accept more formats (#137) 2026-06-26 15:07:02 -04:00
weekly_post Add holiday shifts with 3CX routing and late-pickup approval (#121) 2026-06-17 11:14:29 -04:00
conftest.py Add holiday shifts with 3CX routing and late-pickup approval (#121) 2026-06-17 11:14:29 -04:00
requirements.txt Add pytest suite and wire it into CI (#85) (#86) 2026-06-01 19:07:08 -04:00