module documentation
Undocumented
Class |
|
An async version of Client that creates ASGIRequests and calls through an async request path. |
Class |
|
An async version of ClientHandler. |
Class |
|
Class that lets you create mock ASGI-like Request objects for use in testing. Usage: |
Class |
|
A class that can act as a client for testing purposes. |
Class |
|
An HTTP Handler that can be used for testing purposes. Use the WSGI interface to compose requests, but return the raw HttpResponse object with the originating WSGIRequest attached to its ``wsgi_request`` attribute. |
Class |
|
Mixin with common methods between Client and AsyncClient. |
Class |
|
A wrapper around BytesIO that restricts what can be read since data from the network can't be sought and cannot be read outside of its content length. This makes sure that views can't do anything under the test client that wouldn't work in real life. |
Class |
|
Class that lets you create mock Request objects for use in testing. |
Exception |
|
The test client has been asked to follow a redirect loop. |
Function | closing |
Undocumented |
Function | conditional |
Simulate the behavior of most web servers by removing the content of responses for HEAD requests, 1xx, 204, and 304 responses. Ensure compliance with RFC 7230, section 3.3.3. |
Function | encode |
Undocumented |
Function | encode |
Encode multipart POST data from a dictionary of form values. |
Function | store |
Store templates and contexts that are rendered. |
Constant | BOUNDARY |
Undocumented |
Constant | CONTENT |
Undocumented |
Constant | JSON |
Undocumented |
Constant | MULTIPART |
Undocumented |
Simulate the behavior of most web servers by removing the content of responses for HEAD requests, 1xx, 204, and 304 responses. Ensure compliance with RFC 7230, section 3.3.3.
Encode multipart POST data from a dictionary of form values. The key will be used as the form data name; the value will be transmitted as content. If the value is a file, the contents of the file will be sent as an application/octet-stream; otherwise, str(value) will be sent.