diff --git a/backend/src/tests/api/v1/auth/endpoints/test_user_invitations.py b/backend/src/tests/api/v1/auth/endpoints/test_user_invitations.py index 471543ed7..104744520 100644 --- a/backend/src/tests/api/v1/auth/endpoints/test_user_invitations.py +++ b/backend/src/tests/api/v1/auth/endpoints/test_user_invitations.py @@ -1,4 +1,5 @@ """Test the endpoint users.""" + import json import pytest @@ -45,7 +46,7 @@ def test_create_user_invitation(secure_client: TestClient, invitation_data: list response = secure_client.post( "api/v1/auth/users/invitations", content=json.dumps(data) ) - assert response.status_code == status.HTTP_200_OK, response.content + assert response.status_code == status.HTTP_201_CREATED, response.content invitation_data.append(response.json()["data"]["id"])