-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
44 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
import pytest | ||
|
||
from parsec._parsec import DateTime, InvitationStatus, UserProfile, authenticated_cmds | ||
from parsec.components.invite import SendEmailBadOutcome, UserInvitation | ||
from parsec.components.invite import InvitationCreatedByUser, SendEmailBadOutcome, UserInvitation | ||
from parsec.events import EventInvitation | ||
from tests.common import ( | ||
Backend, | ||
|
@@ -47,9 +47,10 @@ async def test_authenticated_invite_new_user_ok_new( | |
token=invitation_token, | ||
created_on=ANY, | ||
claimer_email="[email protected]", | ||
created_by_device_id=minimalorg.alice.device_id, | ||
created_by_user_id=minimalorg.alice.user_id, | ||
created_by_human_handle=minimalorg.alice.human_handle, | ||
created_by=InvitationCreatedByUser( | ||
user_id=minimalorg.alice.user_id, human_handle=minimalorg.alice.human_handle | ||
), | ||
administrators=[], | ||
status=InvitationStatus.IDLE, | ||
) | ||
] | ||
|
@@ -197,9 +198,10 @@ async def _mocked_send_email(*args, **kwargs): | |
token=invitation_token, | ||
created_on=ANY, | ||
claimer_email="[email protected]", | ||
created_by_device_id=minimalorg.alice.device_id, | ||
created_by_user_id=minimalorg.alice.user_id, | ||
created_by_human_handle=minimalorg.alice.human_handle, | ||
created_by=InvitationCreatedByUser( | ||
user_id=minimalorg.alice.user_id, human_handle=minimalorg.alice.human_handle | ||
), | ||
administrators=[], | ||
status=InvitationStatus.IDLE, | ||
) | ||
] | ||
|