Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
5oappy committed Apr 8, 2024
1 parent 0d9aa03 commit da3afb7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/functional/test_unavailability_delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,12 @@ def test_delete_volunteer_unavailability_success(test_client, create_user):

assert response.status_code == 200

def test_delete_event_not_found(test_client, create_user):
user_id = create_user
test_client.post(f"/v2/volunteers/{user_id}/unavailability",
json=payload_1
)
response = test_client.delete(f"/v2/volunteers/{user_id}/unavailability/{event_id}")

assert response.status_code == 404

0 comments on commit da3afb7

Please sign in to comment.