Skip to content

Commit

Permalink
slight correction on no_records response.json
Browse files Browse the repository at this point in the history
  • Loading branch information
hafizhasyimm committed Mar 23, 2024
1 parent 5e70bf9 commit 285c7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/test_unavailability_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 285c7fe

Please sign in to comment.