From da3afb75b8a97645574b31016e2e6cda42c4ff57 Mon Sep 17 00:00:00 2001 From: "Steven (Quoc)" Date: Mon, 8 Apr 2024 17:04:48 +1000 Subject: [PATCH] add test --- tests/functional/test_unavailability_delete.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/functional/test_unavailability_delete.py b/tests/functional/test_unavailability_delete.py index 07890245..c083d8d8 100644 --- a/tests/functional/test_unavailability_delete.py +++ b/tests/functional/test_unavailability_delete.py @@ -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