Releases: lundberg/respx
Releases · lundberg/respx
Version 0.22.0
0.22.0 (19th December 2024)
Fixed
Removed
- Drop support for Python 3.7, to align with HTTPX 0.25.0 (#280)
CI
Version 0.21.1
0.21.1 (27th March 2024)
Fixed
- Fix
files
pattern not handlingstr
andBytesIO
, thanks @pierremonico for input (#260)
Added
- Add support for
None
values indata
pattern, thanks @slingshotvfx for issue (#259)
Version 0.21.0
0.21.0 (19th March 2024)
Fixed
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, thanks @phha for input (#254)
Changed
- Enhance documentation on iterable side effects (#255)
- Enhance documentation on reusable routers and add tip about a catch-all route (#257)
Version 0.20.2
0.20.2 (21st July 2023)
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)
Version 0.20.1
Version 0.20.0
0.20.0 (16th September 2022)
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 aNoop
pattern (#217) - Type
Route.pattern
to not be optional (#217)
Fixed
- Correct type hints for side effects (#217)
Added
Version 0.19.3
0.19.3 (14th September 2022)
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)