Releases: lundberg/respx
Releases · lundberg/respx
Version 0.23.1
Version 0.23.0
0.23.0 (7th April 2026)
Fixed
- Fix
datapattern with list value (#264) - Fix and enhance incorrect documentations about iterable side effects (#287)
- Fix documentation typo, thanks @markhobson (#298)
- Fix support for multiple slashes
//in URL path by not usingurljoinwhen
prepending path, thanks @lewiscollard and @Skeen (#302) - Type Route.respond json as
Anyto align with HTTPX, thanks @JacobHayes (#284) - Properly handle
ANYinMuitiItemspatterns (#289)
CI
- Fix test warnings (#267)
- Add Python 3.14 to test matrix, thanks @carlosdorneles-mb (#300)
- Update nix flake, mypy target and workflows (#306, #282)
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
filespattern not handlingstrandBytesIO, thanks @pierremonico for input (#260)
Added
- Add support for
Nonevalues indatapattern, 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.responseto raise instead of returning optional response (#217) - Change
CallList.lastto raise instead of return optional call (#217) - Type
M()to not return optional pattern, by introducing aNooppattern (#217) - Type
Route.patternto 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)