Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaarbonel committed Oct 24, 2023
1 parent 04d5a43 commit 46dd251
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 40 deletions.
13 changes: 0 additions & 13 deletions getstream/users/sync/client.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
# from datetime import datetime
from datetime import datetime
import json
from typing import Dict, List, Optional
from getstream.chat.models.ban_response import BanResponse
from getstream.chat.models.delete_user_response import DeleteUserResponse
from getstream.chat.models.delete_users_request import DeleteUsersRequest
from getstream.chat.models.flag_response import FlagResponse
from getstream.chat.models.query_banned_users_response import QueryBannedUsersResponse
from getstream.chat.models.sort_param import SortParam
from getstream.chat.models.update_users_response import UpdateUsersResponse
from getstream.chat.models.users_response import UsersResponse
# from getstream.chat.models.flag_response import FlagResponse
# from getstream.chat.models.mute_user_response import MuteUserResponse
# from getstream.chat.models.query_banned_users_response import QueryBannedUsersResponse
# from getstream.chat.models.sort_param import SortParam
# from getstream.chat.models.users_response import UsersResponse
from getstream.models.create_guest_response import CreateGuestResponse
from getstream.models.user_request import UserRequest
from getstream.models.user_response import UserResponse
from getstream.sync.base import BaseClient
from getstream.utils import from_chat_user_dict, to_chat_user_dict

Expand Down
26 changes: 1 addition & 25 deletions getstream/video/sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,37 +46,13 @@


from getstream.models.sort_param_request import SortParamRequest


from getstream.models.call_settings_request import CallSettingsRequest


from getstream.models.call_request import CallRequest


from getstream.models.call_request import CallRequest


from getstream.models.member_request import MemberRequest


from getstream.models.sort_param_request import SortParamRequest


from getstream.models.notification_settings_request import NotificationSettingsRequest
from getstream.models.call_settings_request import CallSettingsRequest


from getstream.models.call_settings_request import CallSettingsRequest
from getstream.models.notification_settings_request import NotificationSettingsRequest


from getstream.models.user_request import UserRequest


# TODO: generator make imports a set because we have duplicate imports
from getstream.models.user_request import UserRequest


from getstream.models.connect_user_details_request import ConnectUserDetailsRequest


Expand Down
4 changes: 2 additions & 2 deletions tests/test_chat_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import pytest
from getstream.models.user_request import UserRequest
from getstream.sync.stream import Stream
from getstream.version import VERSION


VIDEO_API_KEY = os.environ.get("VIDEO_API_KEY")
Expand Down Expand Up @@ -60,10 +59,11 @@ def test_update_users(client: Stream):
# # client.users.unban_user(target_user_id=user_id, user_id=admin_id)


def test_query_users(client:Stream):
def test_query_users(client: Stream):
response = client.users.query_users(limit=10)
assert response.users is not None


def test_delete_user(client: Stream):
user_id = str(uuid.uuid4())
# create user to ban
Expand Down

0 comments on commit 46dd251

Please sign in to comment.