Commit Graph

7 Commits

Author SHA1 Message Date
Thomas Grainger d222b87cb4
TestClient accepts backend and backend_options as arguments to constructor (#1211)
as opposed to ClassVar assignment 

Co-authored-by: Jamie Hewland <jhewland@gmail.com>
Co-authored-by: Jordan Speicher <jordan@jspeicher.com>
Co-authored-by: Jordan Speicher <uSpike@users.noreply.github.com>
2021-06-28 21:36:13 +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 96c09044e8
Add BackgroundTasks for multiple jobs. Support GraphQL background tasks. (#273) 2018-12-14 14:56:31 +00:00
Alexander Botello 95517b7002 remove unused imports (#228) 2018-11-21 19:12:44 +00:00
Tom Christie bcf876c686
Use isort for consistent import ordering (#156) 2018-10-29 14:46:42 +00:00
Tom Christie 7dc07267c2 Update background task tests 2018-10-02 12:29:44 +01:00
Alex Botello 7c1a1e9dd5 Add support for background tasks (#65)
* Build out a BackgroundTask class

* Integrate BackgroundTask into Response class

* Add test cases for background tasks

* Add documentation for background tasks

* Reformat files with black

* Make requested changes

* Improve documentation example
2018-10-02 11:40:08 +01:00