Skip to content
Snippets Groups Projects
Commit 99989b3c authored by Tore.Brede's avatar Tore.Brede
Browse files

GREG-94: Fixing linting error

parent 282f9177
No related branches found
No related tags found
1 merge request!136GREG-94: Resend invitation
Pipeline #99973 failed
......@@ -40,8 +40,7 @@ def test_invite_guest(client, user_sponsor, unit_foo, role_type_foo, mocker):
request = APIRequestFactory().post(url, data, format="json")
force_authenticate(request, user=user_sponsor)
view = InvitationView.as_view()
response = view(request)
response = InvitationView.as_view()(request)
assert response.status_code == status.HTTP_201_CREATED
......@@ -67,7 +66,7 @@ def test_invite_guest(client, user_sponsor, unit_foo, role_type_foo, mocker):
@pytest.mark.django_db
def test_invite_cancel(
client, invitation_link, invitation, role, log_in, sponsor_guy, user_sponsor
client, invitation_link, invitation, role, log_in, sponsor_guy, user_sponsor
):
# TODO: Should all sponsors be allowed to delete arbitrary invitations?
log_in(user_sponsor)
......@@ -87,14 +86,14 @@ def test_invite_cancel(
@pytest.mark.django_db
def test_invite_resend_existing_invite_active(
client,
log_in,
user_sponsor,
person,
invitation,
invitation_link,
invitation_link_expired,
mocker,
client,
log_in,
user_sponsor,
person,
invitation,
invitation_link,
invitation_link_expired,
mocker,
):
send_invite_mock_function = mocker.patch(
"gregui.api.views.invitation.send_invite_mail"
......@@ -131,7 +130,7 @@ def test_invite_resend_existing_invite_active(
@pytest.mark.django_db
def test_invite_resend_existing_invite_not_active(
client, log_in, user_sponsor, person, invitation_link_expired, mocker
client, log_in, user_sponsor, person, invitation_link_expired, mocker
):
send_invite_mock_function = mocker.patch(
"gregui.api.views.invitation.send_invite_mail", return_value=10
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment