Commit f1858da
committed
Properly decode the
The body of `aiohttp.ClientRequest` is a `aiohttp.payload.Payload` and
thus it won't compare correctly when used by the `BodyMatcher`.
`aiohttp.payload.Payload` provides a `decode` method we can use to turn
the underlying payload into a string representation suitable for
matching.aiohttp.ClientRequest body1 parent c7dcf2d commit f1858da
File tree
2 files changed
+16
-1
lines changed- src/pook/interceptors
- tests/integration
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments