File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ include_package_data = True
29
29
packages = find:
30
30
python_requires = >=3.9.0, <4
31
31
install_requires =
32
- websockets >= 9.1, < 12.0
32
+ websockets >= 9.1
33
33
construct >= 2.9.0, < 3.0.0
34
34
aiohttp >= 3.7.0, < 4.0.0
35
35
tests_require =
Original file line number Diff line number Diff line change 1
1
from unittest .mock import AsyncMock , patch
2
2
3
3
import pytest
4
- from websockets .legacy . protocol import WebSocketCommonProtocol
4
+ from websockets .client import WebSocketClientProtocol
5
5
6
6
from vallox_websocket_api import Client , Vallox
7
7
@@ -25,7 +25,7 @@ async def vallox():
25
25
@pytest .fixture
26
26
def ws ():
27
27
with patch ("websockets.client.connect" ) as connect :
28
- protocol_mock = AsyncMock (spec = WebSocketCommonProtocol )
28
+ protocol_mock = AsyncMock (spec = WebSocketClientProtocol )
29
29
connect .return_value .__aenter__ .side_effect = protocol_mock
30
30
31
31
yield protocol_mock .return_value
Original file line number Diff line number Diff line change 20
20
"ValloxWebsocketException" ,
21
21
]
22
22
23
- __version__ = "5.1.0 "
23
+ __version__ = "5.1.1 "
You can’t perform that action at this time.
0 commit comments