-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
invite_to_organization
: fix InvitationOrganizationJoinEmail
ctor …
…call (#637) * `invite_to_organization`: fix `InvitationOrganizationJoinEmail` ctor call [sc-54346] * Add a test for the fix in gh-637 --------- Co-authored-by: Sean Gillies <[email protected]>
- Loading branch information
1 parent
7965f86
commit 77b3d6d
Showing
2 changed files
with
24 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"""Test of invites.""" | ||
|
||
import unittest.mock | ||
|
||
from tiledb.cloud import invites | ||
|
||
|
||
@unittest.mock.patch("tiledb.cloud.invites.client") | ||
def test_invite_to_organization(client): | ||
"""Function is properly wired to low-level generated API.""" | ||
# This call used to raise a ValueError. | ||
invites.invite_to_organization( | ||
"test_org", recipients=["[email protected]"], role="read_only" | ||
) |