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
This commit is contained in:
parent
b9f605d7b3
commit
46c3c2073a
1 changed files with 1 additions and 1 deletions
|
|
@ -299,7 +299,7 @@ class TestCreateBooking:
|
||||||
)
|
)
|
||||||
|
|
||||||
assert response.status_code == 400
|
assert response.status_code == 400
|
||||||
assert "not within available" in response.json()["detail"]
|
assert "not within any available time ranges" in response.json()["detail"]
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue