Responses

Latest version: v0.25.6

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 10

0.10.15

-------

- Added `assert_call_count` to improve ergonomics around ensuring a mock was called.
- Fix incorrect handling of paths with query strings.
- Add Python 3.9 support to CI matrix.

0.10.14

-------

- Retag of 0.10.13

0.10.13

-------

- Improved README examples.
- Improved handling of unicode bodies. The inferred content-type for unicode
bodies is now `text/plain; charset=utf-8`.
- Streamlined querysting matching code.

0.10.12

-------

- Fixed incorrect content-type in `add_callback()` when headers are provided as a list of tuples.

0.10.11

-------

- Fixed invalid README formatted.
- Fixed string formatting in error message.

0.10.10

------

- Added Python 3.8 support
- Remove Python 3.4 from test suite matrix.
- The `response.request` object now has a `params` attribute that contains the query string parameters from the request that was captured.
- `add_passthru` now supports `re` pattern objects to match URLs.
- ConnectionErrors raised by responses now include more details on the request that was attempted and the mocks registered.

Page 6 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.