pre-commit-ci-lite[bot]
4 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
tests/test_ws_router.py
|
|
|
@ -244,7 +244,7 @@ def test_depend_err_middleware(): |
|
|
|
return await call_next() |
|
|
|
except Exception as e: |
|
|
|
await websocket.close(code=status.WS_1006_ABNORMAL_CLOSURE, reason=repr(e)) |
|
|
|
|
|
|
|
|
|
|
|
myapp = make_app(middleware=[Middleware(errorhandler)]) |
|
|
|
client = TestClient(myapp) |
|
|
|
with pytest.raises(WebSocketDisconnect) as e: |
|
|
|
|