You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+81-1Lines changed: 81 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,4 +11,84 @@ Test helpers for the [requests](https://docs.python-requests.org) library
11
11
## Installation
12
12
13
13
Install the package `requtests` version `1.0+` from PyPI.
14
-
The recommended `requirements.txt` line is `requtests~=1.0`.
14
+
The recommended `requirements.txt` line is `requtests~=1.0`.
15
+
16
+
### `FakeAdapter`
17
+
18
+
Creates an adapter intended for use with `request.Session`.
19
+
Returns the passed `Response` instance when the adapter's `send` method is called. If the `assertions` function has been specified, it will be called with the request before returning the response.
20
+
21
+
The faked adapter can be mounted using the standard `mount` method on an instance of `Session` with a suitable URL prefix. Use multiple faked adapters, specifically mounted for some URL:s, to simulate a chain of requests and responses being made.
0 commit comments