diff --git a/tests/functional/test_unavailability_get.py b/tests/functional/test_unavailability_get.py index 28e557e9..62f36758 100644 --- a/tests/functional/test_unavailability_get.py +++ b/tests/functional/test_unavailability_get.py @@ -19,7 +19,7 @@ def test_get_volunteer_unavailability_no_records(test_client): test_client.post(f"/v2/volunteers/{user_id}/unavailability") response = test_client.get(f"/v2/volunteers/{user_id}/unavailability") assert response.status_code == 400 # Assuming the endpoint returns a 400 status for no records found - assert response.json == {'userID': user_id, 'success': False} # Expected response body for no records + assert response.json == {"message": "No unavailability record found."} # Expected response body for no records def test_get_volunteer_unavailability_invalid_user(test_client):