Respx

Latest version: v0.21.1

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

Scan your dependencies

Page 1 of 8

0.21.1

Fixed

- Fix `files` pattern not handling `str` and `BytesIO`, thanks pierremonico for input
(260)

Added

- Add support for `None` values in `data` pattern, thanks slingshotvfx for issue (259)

0.21.0

Fixed

- Fix matching request data when files are provided, thanks ziima for input (252)

Added

- Add support for data\_\_contains lookup (252)
- Add `files` pattern to support matching on uploads, thanks ziima for input (253)
- Add `SetCookie` utility for easier mocking of response cookie headers (254)

Changed

- Enhance documentation on iterable side effects (255)
- Enhance documentation on named routes and add tip about a catch-all route (257)

0.20.2

Fixed

- Better assertion output for `assert_all_called`, thanks sileht (224)
- Support for quoted path pattern matching, thanks alexdrydew for input (240)

Added

- Enable content\_\_contains pattern, thanks rjprins (236)
- Added initial `CONTRIBUTING.md`, thanks morenoh149 (238)

Changed

- Docs about retrieving mocked calls, thanks tomhamiltonstubber (230)
- Docs about `Router.assert_all_called()`, thanks BeyondEvil for input (241)

0.20.1

Fixed

- Support HTTPX 0.23.1, thanks g-as for input (223)

Added

- Officially support Python 3.11 (223)
- Run pre-commit hooks in CI workflow (219)

Changed

- Bump autoflake, thanks antonagestam (220)

Removed

- Drop support for Python 3.6 (218)

0.20.0

Changed

- Type `Router.__getitem__` to not return optional routes, thanks flaeppe (216)
- Change `Call.response` to raise instead of returning optional response (217)
- Change `CallList.last` to raise instead of return optional call (217)
- Type `M()` to not return optional pattern, by introducing a `Noop` pattern (217)
- Type `Route.pattern` to not be optional (217)

Fixed

- Correct type hints for side effects (217)

Added

- Runs `mypy` on both tests and respx (217)
- Added nox test session for python 3.11 (217)
- Added `Call.has_response` helper, now that `.response` raises (217)

0.19.3

Fixed

- Fix typing for Route modulos arg
- Respect patterns with empty value when using equal lookup (206)
- Use pytest asyncio auto mode (212)
- Fix mock decorator to work together with pytest fixtures (213)
- Wrap pytest function correctly, i.e. don't hide real function name (213)

Changed

- Enable mypy strict_optional (201)

Page 1 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.