Skip to content

Commit

Permalink
chore: black format
Browse files Browse the repository at this point in the history
  • Loading branch information
Valbou committed Jul 14, 2024
1 parent 0e280a1 commit 6b5ba9c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/users/hmi/flask/test_invitation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from src.users.services import UserService, RoleTypeService
from src.users.models import RoleType, Group, User

from src.users.models import Group, RoleType, User
from src.users.services import RoleTypeService, UserService
from tests.base_test import BaseTestCase

URL_API = "/api/v1"
Expand Down Expand Up @@ -51,11 +50,11 @@ def test_invite_a_new_user(self):

# Accept invitation
headers_accept = self.get_token_headers()
data_accept = {
"hash": invitation.hash
}
data_accept = {"hash": invitation.hash}

response_accept = self.client.post(f"{URL_API}/invite/accepted", json=data_accept, headers=headers_accept)
response_accept = self.client.post(
f"{URL_API}/invite/accepted", json=data_accept, headers=headers_accept
)
self.assertEqual(response_accept.status_code, 200)

invitations = self.user_service.get_invitations(
Expand Down Expand Up @@ -90,7 +89,9 @@ def test_invite_and_cancel(self):
invitation = invitations[0]

# Cancel invitation
response_accept = self.client.delete(f"{URL_API}/invite/{invitation.id}", headers=headers)
response_accept = self.client.delete(
f"{URL_API}/invite/{invitation.id}", headers=headers
)
print(response.status_code)
self.assertEqual(response_accept.status_code, 204)

Expand Down

0 comments on commit 6b5ba9c

Please sign in to comment.