Skip to content

Commit

Permalink
Fixed indentation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Oct 1, 2023
1 parent ea161c6 commit 25fe4c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/ably/sync/restauth_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
24 changes: 12 additions & 12 deletions test/ably/sync/restchannelstatus_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 25fe4c0

Please sign in to comment.