Skip to content

Commit a02035b

Browse files
committed
use asyncwebsockets for quart tests
1 parent 3df46aa commit a02035b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Changelog
33

44
v0.4.15
55
=======
6-
- Websockets (https://github.com/python-websockets/websockets) server support
6+
- Websockets server support (https://github.com/python-websockets/websockets)
7+
- AsyncWebsockets client support (https://github.com/Fuyukai/asyncwebsockets)
78

89
v0.4.14
910
=======

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ def setup_logging(level=logging.DEBUG, use_file: bool = False):
4040
setup_logging(logging.WARN)
4141

4242
tested_transports = [
43-
'tcp'
43+
'tcp',
44+
'quart'
4445
]
4546

4647
if sys.version_info[:3] < (3, 11, 5):
4748
tested_transports += [
4849
'aiohttp',
49-
'quart',
5050
'quic',
5151
'http3',
5252
# 'websockets'

tests/tools/fixtures_quart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
async def pipe_factory_quart_websocket(unused_tcp_port, client_arguments=None, server_arguments=None):
1212
from quart import Quart
1313
from rsocket.transports.quart_websocket import websocket_handler
14-
from rsocket.transports.aiohttp_websocket import websocket_client
14+
from rsocket.transports.asyncwebsockets_transport import websocket_client
1515

1616
app = Quart(__name__)
1717
server: Optional[RSocketBase] = None
@@ -32,7 +32,7 @@ async def ws():
3232
server_task = asyncio.create_task(app.run_task(port=unused_tcp_port))
3333
await asyncio.sleep(0)
3434

35-
async with websocket_client('http://localhost:{}'.format(unused_tcp_port),
35+
async with websocket_client('ws://localhost:{}'.format(unused_tcp_port),
3636
**client_arguments) as client:
3737
await wait_for_server.wait()
3838
yield server, client

0 commit comments

Comments
 (0)