File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 88
99import pytest
1010import requests
11+ import websockets
1112
1213from fishjam import FishjamClient , FishjamNotifier , RoomOptions
1314from fishjam .events import (
@@ -68,8 +69,9 @@ def handle_notitifcation(_notification):
6869
6970 notifier_task = asyncio .create_task (notifier .connect ())
7071 await notifier .wait_ready ()
71- # pylint: disable=protected-access
72- assert notifier ._websocket .open
72+ assert (
73+ notifier ._websocket and notifier ._websocket .state == websockets .State .OPEN
74+ )
7375
7476 await cancel (notifier_task )
7577
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def room_api():
5858
5959
6060class TestCreateRoom :
61- def test_no_params (self , room_api ):
61+ def test_no_params (self , room_api : FishjamClient ):
6262 room = room_api .create_room ()
6363
6464 config = RoomConfig (
@@ -71,6 +71,7 @@ def test_no_params(self, room_api):
7171 config .__setitem__ (
7272 "peerlessPurgeTimeout" , room .config .__getitem__ ("peerlessPurgeTimeout" )
7373 )
74+ config .__setitem__ ("geoLoc" , room .config .__getitem__ ("geoLoc" ))
7475
7576 assert room == Room (
7677 config = config ,
@@ -98,6 +99,7 @@ def test_valid_params(self, room_api):
9899 config .__setitem__ (
99100 "peerlessPurgeTimeout" , room .config .__getitem__ ("peerlessPurgeTimeout" )
100101 )
102+ config .__setitem__ ("geoLoc" , room .config .__getitem__ ("geoLoc" ))
101103
102104 assert room == Room (
103105 config = config ,
@@ -158,6 +160,7 @@ def test_valid(self, room_api: FishjamClient):
158160 config .__setitem__ (
159161 "peerlessPurgeTimeout" , room .config .__getitem__ ("peerlessPurgeTimeout" )
160162 )
163+ config .__setitem__ ("geoLoc" , room .config .__getitem__ ("geoLoc" ))
161164
162165 assert Room (
163166 peers = [],
You can’t perform that action at this time.
0 commit comments