Skip to content

Commit

Permalink
feat: Added manager_huid field into UserFromCSV
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid Gorbunov committed Jun 13, 2024
1 parent d3f1a46 commit 62f7326
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pybotx/models/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class UserFromCSV:
company: User company.
department: User department.
position: User position.
manager_huid: User's manager huid.
"""

huid: UUID
Expand All @@ -62,3 +63,4 @@ class UserFromCSV:
company: Optional[str] = None
department: Optional[str] = None
position: Optional[str] = None
manager_huid: Optional[str] = None
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pybotx"
version = "0.67.1"
version = "0.68.0"
description = "A python library for interacting with eXpress BotX API"
authors = [
"Sidnev Nikolay <[email protected]>",
Expand Down
4 changes: 3 additions & 1 deletion tests/client/users_api/test_users_as_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def test__users_as_csv__succeed(
return_value=httpx.Response(
status_code=HTTPStatus.OK,
content=(
b"HUID,AD Login,Domain,AD E-mail,Name,Sync source,Active,Kind,Company,Department,Position\n"
b"HUID,AD Login,Domain,AD E-mail,Name,Sync source,Active,Kind,Company,Department,Position,Manager_huid\n"
b"dbc8934f-d0d7-4a9e-89df-d45c137a851c,test_user_17,cts.example.com,,test_user_17,ad,true,cts_user,,,\n"
b"13a6909c-bce1-4dbf-8359-efb7ef8e5b34,test_user_18,cts.example.com,,test_user_18,unsupported,true,cts_user,,,"
),
Expand Down Expand Up @@ -103,6 +103,7 @@ async def test__users_as_csv__succeed(
company=None,
department=None,
position=None,
manager_huid=None,
),
UserFromCSV(
huid=UUID("13a6909c-bce1-4dbf-8359-efb7ef8e5b34"),
Expand All @@ -116,5 +117,6 @@ async def test__users_as_csv__succeed(
company=None,
department=None,
position=None,
manager_huid=None,
),
]

0 comments on commit 62f7326

Please sign in to comment.