-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add user_kind field to Users API
- Loading branch information
1 parent
0090c57
commit 305a648
Showing
7 changed files
with
20 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "pybotx" | ||
version = "0.49.0" | ||
version = "0.50.0" | ||
description = "A python library for interacting with eXpress BotX API" | ||
authors = [ | ||
"Sidnev Nikolay <[email protected]>", | ||
|
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
UserNotFoundError, | ||
lifespan_wrapper, | ||
) | ||
from pybotx.models.enums import UserKinds | ||
|
||
pytestmark = [ | ||
pytest.mark.asyncio, | ||
|
@@ -84,6 +85,7 @@ async def test__search_user_by_email__succeed( | |
"company_position": "Director", | ||
"department": "Owners", | ||
"emails": ["[email protected]"], | ||
"user_kind": "cts_user", | ||
}, | ||
}, | ||
), | ||
|
@@ -109,6 +111,7 @@ async def test__search_user_by_email__succeed( | |
department="Owners", | ||
emails=["[email protected]"], | ||
other_id=None, | ||
user_kind=UserKinds.CTS_USER, | ||
) | ||
|
||
assert endpoint.called |
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
UserNotFoundError, | ||
lifespan_wrapper, | ||
) | ||
from pybotx.models.enums import UserKinds | ||
|
||
pytestmark = [ | ||
pytest.mark.asyncio, | ||
|
@@ -84,6 +85,7 @@ async def test__search_user_by_huid__succeed( | |
"company_position": "Director", | ||
"department": "Owners", | ||
"emails": ["[email protected]"], | ||
"user_kind": "cts_user", | ||
}, | ||
}, | ||
), | ||
|
@@ -109,6 +111,7 @@ async def test__search_user_by_huid__succeed( | |
department="Owners", | ||
emails=["[email protected]"], | ||
other_id=None, | ||
user_kind=UserKinds.CTS_USER, | ||
) | ||
|
||
assert endpoint.called |
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
UserNotFoundError, | ||
lifespan_wrapper, | ||
) | ||
from pybotx.models.enums import UserKinds | ||
|
||
pytestmark = [ | ||
pytest.mark.asyncio, | ||
|
@@ -85,6 +86,7 @@ async def test__search_user_by_ad__succeed( | |
"company_position": "Director", | ||
"department": "Owners", | ||
"emails": ["[email protected]"], | ||
"user_kind": "cts_user", | ||
}, | ||
}, | ||
), | ||
|
@@ -111,6 +113,7 @@ async def test__search_user_by_ad__succeed( | |
department="Owners", | ||
emails=["[email protected]"], | ||
other_id=None, | ||
user_kind=UserKinds.CTS_USER, | ||
) | ||
|
||
assert endpoint.called |
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
UserNotFoundError, | ||
lifespan_wrapper, | ||
) | ||
from pybotx.models.enums import UserKinds | ||
|
||
pytestmark = [ | ||
pytest.mark.asyncio, | ||
|
@@ -85,6 +86,7 @@ async def test__search_user_by_other_id__succeed( | |
"department": "Owners", | ||
"emails": ["[email protected]"], | ||
"other_id": "some_id", | ||
"user_kind": "cts_user", | ||
}, | ||
}, | ||
), | ||
|
@@ -110,6 +112,7 @@ async def test__search_user_by_other_id__succeed( | |
department="Owners", | ||
emails=["[email protected]"], | ||
other_id="some_id", | ||
user_kind=UserKinds.CTS_USER, | ||
) | ||
|
||
assert endpoint.called |