Commit ea60733
tests: match request bodies with equivalent datetime timezone notations
The Python client serializes tz-aware datetimes via datetime.isoformat(),
producing a "+00:00" UTC offset, while recorded cassettes use "Z". Both denote
the same instant, but the VCR replay body matcher compared them as differing
strings, so replay-only scenarios that send a datetime in the request body
(e.g. DORA ListDORADeployments) fail to match their cassette. The matcher also
only recognized "text/json", so "application/json" bodies skipped JSON-aware
comparison entirely and fell back to a raw byte compare.1 parent d4e3e28 commit ea60733
1 file changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
323 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
324 | 339 | | |
325 | 340 | | |
326 | | - | |
327 | | - | |
| 341 | + | |
| 342 | + | |
328 | 343 | | |
329 | 344 | | |
330 | 345 | | |
| |||
0 commit comments