Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
greg
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
it-bott-integrasjoner
greg
Commits
9cc6159c
Commit
9cc6159c
authored
3 years ago
by
Tore.Brede
Browse files
Options
Downloads
Patches
Plain Diff
GREG-94: Fixing formatting error
parent
99989b3c
No related branches found
No related tags found
1 merge request
!136
GREG-94: Resend invitation
Pipeline
#99974
passed
3 years ago
Stage: venv update
Stage: tests and linting
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gregui/tests/api/test_invite_guest.py
+10
-10
10 additions, 10 deletions
gregui/tests/api/test_invite_guest.py
with
10 additions
and
10 deletions
gregui/tests/api/test_invite_guest.py
+
10
−
10
View file @
9cc6159c
...
...
@@ -66,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
)
...
...
@@ -86,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
"
...
...
@@ -130,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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment