Skip to content

Commit fd6754b

Browse files
committed
test: fix issues causing tests fail
1 parent 4f5be76 commit fd6754b

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

pubnub/endpoints/presence/leave.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ def is_auth_required(self):
5454
return True
5555

5656
def affected_channels(self):
57-
return list(self._channels)
57+
return sorted(self._channels)
5858

5959
def affected_channels_groups(self):
60-
return list(self._groups)
60+
return sorted(self._groups)
6161

6262
def request_timeout(self):
6363
return self.pubnub.config.non_subscribe_request_timeout

pubnub/endpoints/pubsub/subscribe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ def is_auth_required(self):
108108
return True
109109

110110
def affected_channels(self):
111-
return list(self._channels)
111+
return sorted(self._channels)
112112

113113
def affected_channels_groups(self):
114-
return list(self._groups)
114+
return sorted(self._groups)
115115

116116
def request_timeout(self):
117117
return self.pubnub.config.subscribe_request_timeout

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
asyncio_mode = auto

0 commit comments

Comments
 (0)