Commit Graph

5 Commits

Author SHA1 Message Date
Steinn Eldjárn Sigurðarson d6830cacca lint: forgot to run black locally 2019-05-13 12:09:42 +00:00
Patryk Zawadzki 3226c7c6f4 Don't block the event loop in WebSocketTestSession (#459)
It's typical for event-loop-based servers to try to do a blocking
receive in a while loop. Queue.get() is blocking in a synchronous
way and it does not yield control back to the asyncio executor.
Let's explicitly yield control until the queue is no longer empty.
2019-04-02 10:52:08 +01:00
Tom Christie 4d5708e468
ASGI 3 (#435)
* TestClient supports ASGI2 and ASGI3

* Starlette instances present ASGI3 interface

* ServerErrorMiddleware presents ASGI3 interface

* Use ASGI3 protocol throughout

* Response signatures match ASGI interface.
2019-03-19 16:03:19 +00:00
Tom Christie 16e8b87f72
Version 0.9.1 (#239) 2018-11-28 13:36:22 +00:00
Tom Christie ed16b7df21
Asyncio cleanups (#236) 2018-11-23 11:11:16 +00:00