mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Abri confirmed time before midday books the morning slot 🟥
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
992ac243ba
commit
fcdab30b73
1 changed files with 11 additions and 0 deletions
|
|
@ -14,3 +14,14 @@ def test_a_booking_with_no_confirmed_time_is_an_all_day_appointment(
|
|||
|
||||
# Assert
|
||||
assert slot == "AD"
|
||||
|
||||
|
||||
@pytest.mark.parametrize("confirmed_time", ["08:00", "09:30", "11:59"])
|
||||
def test_a_confirmed_time_before_midday_books_the_morning_slot(
|
||||
confirmed_time: str,
|
||||
) -> None:
|
||||
# Act
|
||||
slot = slot_for_confirmed_time(confirmed_time)
|
||||
|
||||
# Assert
|
||||
assert slot == "AM"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue