From 285c7fe01a9bdf660e943d78090956ae6e4d718f Mon Sep 17 00:00:00 2001 From: Muhammad Hafizh Hasyim Date: Sat, 23 Mar 2024 14:59:41 +1100 Subject: [PATCH] slight correction on no_records response.json --- tests/functional/test_unavailability_get.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):