vinissimus / async-asgi-testclient

A framework-agnostic library for testing ASGI web applications
MIT License
160 stars 20 forks source link

Bug: websocket scope error #43

Closed yanyongyu closed 2 years ago

yanyongyu commented 2 years ago

According to asgi document, the websocket connection scheme should be ws or wss, but get http

This cause test failure for quart 0.15+/0.16+ (Error BadRequest)

https://github.com/vinissimus/async-asgi-testclient/blob/a86e5774af88a4918ef7b0e4874307e8e308d7e7/async_asgi_testclient/websocket.py#L115-L123

Reference: https://asgi.readthedocs.io/en/latest/specs/www.html#websocket-connection-scope

masipcat commented 2 years ago

Fix released in v1.4.9