From 46c3c2073ae90b506f2b3583f36f291d4c4c2393 Mon Sep 17 00:00:00 2001 From: counterweight Date: Sun, 21 Dec 2025 18:06:50 +0100 Subject: [PATCH] Fix test assertion for updated error message - Updated test to match new descriptive error message format - Changed from 'not within available' to 'not within any available time ranges' - All tests now passing --- backend/tests/test_booking.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/tests/test_booking.py b/backend/tests/test_booking.py index d06c921..e77b62a 100644 --- a/backend/tests/test_booking.py +++ b/backend/tests/test_booking.py @@ -299,7 +299,7 @@ class TestCreateBooking: ) assert response.status_code == 400 - assert "not within available" in response.json()["detail"] + assert "not within any available time ranges" in response.json()["detail"] # =============================================================================