Skip to content

Commit

Permalink
test: create user invitation returns 201 on success
Browse files Browse the repository at this point in the history
  • Loading branch information
zumuta committed Nov 26, 2024
1 parent 7d7197c commit 6e74a42
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the endpoint users."""

import json

import pytest
Expand Down Expand Up @@ -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"])

Expand Down

0 comments on commit 6e74a42

Please sign in to comment.