Open ripperdoc opened 1 year ago
On Sanic 22.12.0 it instead breaks on an invalid server protocol for websocket websockets.exceptions.InvalidURI: http://127.0.0.1:62871/test_ws isn't a valid URI: scheme isn't ws or wss
, and the other tests break on ConnectionResetError: [Errno 54] Connection reset by peer
so not sure what's going on.
any workaround found?
Pip freeze:
I'm using the code from README. This test fixture
breaks with the error
AttributeError: Setting variables on Sanic instances is not allowed. You should change your Sanic instance to use instance.ctx.is_running instead.
on the line 112 in utils.py:This seems to happen for at least all of the 22.x and 23.x versions of Sanic.