Skip to content

Commit

Permalink
Update user endpoints to include get_all users for team
Browse files Browse the repository at this point in the history
  • Loading branch information
maitham committed Jun 29, 2021
1 parent 2a387f5 commit bddf012
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/api/e2e/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def test_resolve_client_user_id(test_client: Client, client_user_id: str):
data = test_client.User.resolve(client_user_id)
assert data["client_user_id"] == client_user_id


def test_create_and_delete_user(test_client: Client, client_user_id: str):
client_user_id = random_string()
data = test_client.User.create(client_user_id)
Expand Down
6 changes: 6 additions & 0 deletions vital/api/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ def delete(self, user_key: str) -> Mapping[str, str]:

return self.client.delete(f"/user/{user_key}")

def get_all(self) -> Mapping[str, str]:
"""
Get all users.
"""
return self.client.get("/user/")

def get(self, user_key: str) -> Mapping[str, str]:
"""
Get user id.
Expand Down

0 comments on commit bddf012

Please sign in to comment.