⬆️ upgrade asgi test client

This commit is contained in:
yanyongyu
2021-12-23 01:34:20 +08:00
parent b984f99643
commit cda49551a8
2 changed files with 6 additions and 23 deletions

View File

@ -50,7 +50,6 @@ async def test_reverse_driver(app: App):
assert response.status_code == 200
assert response.text == "test"
# FIXME: https://github.com/vinissimus/async-asgi-testclient/issues/43
# async with client.websocket_connect("/ws_test") as ws:
# await ws.send_text("ping")
# assert await ws.receive_text() == "pong"
async with client.websocket_connect("/ws_test") as ws:
await ws.send_text("ping")
assert await ws.receive_text() == "pong"