From 25fe4c0eec5837a6dc28c6cda7627f085b12ede2 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Sun, 1 Oct 2023 17:39:30 +0530 Subject: [PATCH] Fixed indentation errors --- test/ably/sync/restauth_test.py | 2 +- test/ably/sync/restchannelstatus_test.py | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/test/ably/sync/restauth_test.py b/test/ably/sync/restauth_test.py index 279895f3..e994c7d1 100644 --- a/test/ably/sync/restauth_test.py +++ b/test/ably/sync/restauth_test.py @@ -85,7 +85,7 @@ def test_request_basic_auth_header(self): ably.sync_enabled = True with mock.patch.object(AsyncClient, 'send') as get_mock: try: - result = ably.http.get('/time', skip_auth=False) + ably.http.get('/time', skip_auth=False) except Exception: pass request = get_mock.call_args_list[0][0][0] diff --git a/test/ably/sync/restchannelstatus_test.py b/test/ably/sync/restchannelstatus_test.py index 444a3367..92a544bf 100644 --- a/test/ably/sync/restchannelstatus_test.py +++ b/test/ably/sync/restchannelstatus_test.py @@ -27,21 +27,21 @@ def test_channel_status(self): assert channel_status is not None, "Expected non-None channel_status" assert channel_name == channel_status.channel_id, "Expected channel name to match" assert channel_status.status.is_active is True, "Expected is_active to be True" - assert isinstance(channel_status.status.occupancy.metrics.publishers, int) and \ - channel_status.status.occupancy.metrics.publishers >= 0, \ + assert isinstance(channel_status.status.occupancy.metrics.publishers, int) and\ + channel_status.status.occupancy.metrics.publishers >= 0,\ "Expected publishers to be a non-negative int" - assert isinstance(channel_status.status.occupancy.metrics.connections, int) and \ - channel_status.status.occupancy.metrics.connections >= 0, \ + assert isinstance(channel_status.status.occupancy.metrics.connections, int) and\ + channel_status.status.occupancy.metrics.connections >= 0,\ "Expected connections to be a non-negative int" - assert isinstance(channel_status.status.occupancy.metrics.subscribers, int) and \ - channel_status.status.occupancy.metrics.subscribers >= 0, \ + assert isinstance(channel_status.status.occupancy.metrics.subscribers, int) and\ + channel_status.status.occupancy.metrics.subscribers >= 0,\ "Expected subscribers to be a non-negative int" - assert isinstance(channel_status.status.occupancy.metrics.presence_members, int) and \ - channel_status.status.occupancy.metrics.presence_members >= 0, \ + assert isinstance(channel_status.status.occupancy.metrics.presence_members, int) and\ + channel_status.status.occupancy.metrics.presence_members >= 0,\ "Expected presence_members to be a non-negative int" - assert isinstance(channel_status.status.occupancy.metrics.presence_connections, int) and \ - channel_status.status.occupancy.metrics.presence_connections >= 0, \ + assert isinstance(channel_status.status.occupancy.metrics.presence_connections, int) and\ + channel_status.status.occupancy.metrics.presence_connections >= 0,\ "Expected presence_connections to be a non-negative int" - assert isinstance(channel_status.status.occupancy.metrics.presence_subscribers, int) and \ - channel_status.status.occupancy.metrics.presence_subscribers >= 0, \ + assert isinstance(channel_status.status.occupancy.metrics.presence_subscribers, int) and\ + channel_status.status.occupancy.metrics.presence_subscribers >= 0,\ "Expected presence_subscribers to be a non-negative int"