Skip to content

Releases: lundberg/respx

Version 0.21.1

27 Mar 20:43
Compare
Choose a tag to compare

0.21.1 (27th March 2024)

Fixed

  • Fix files pattern not handling str and BytesIO, thanks @pierremonico for input (#260)

Added

Version 0.21.0

19 Mar 16:22
Compare
Choose a tag to compare

0.21.0 (19th March 2024)

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, thanks @phha for input (#254)

Changed

Version 0.20.2

20 Jul 23:05
Compare
Choose a tag to compare

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

Changed

Version 0.20.1

18 Nov 17:03
Compare
Choose a tag to compare

0.20.1 (17th November 2022)

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

Removed

  • Drop support for Python 3.6 (#218)

Version 0.20.0

16 Sep 09:30
Compare
Choose a tag to compare

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 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)

Version 0.19.3

14 Sep 10:03
d5d7051
Compare
Choose a tag to compare

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)

Version 0.19.2

03 Feb 10:28
Compare
Choose a tag to compare

0.19.2 (3rd February 2022)

Fixed

Version 0.19.1

10 Jan 10:13
Compare
Choose a tag to compare

0.19.1 (10th Januari 2022)

Fixed

Version 0.19.0

15 Nov 15:43
Compare
Choose a tag to compare

0.19.0 (15th November 2021)

Fixed

  • Support HTTPX 0.21.0. (#189)
  • Use Session.notify when chaining nox sessions, thanks @flaeppe. (#188)
  • Add overloads to MockRouter.call, thanks @flaeppe. (#187)
  • Enhance AND pattern evaluation to fail fast. (#185)
  • Fix CallList assertion error message. (#178)

Changed

  • Prevent method and url as lookups in HTTP method helpers, thanks @flaeppe. (#183)
  • Fail pattern match when JSON path not found. (#184)

Version 0.18.2

22 Oct 07:26
Compare
Choose a tag to compare

0.18.2 (22nd October 2021)

Fixed

  • Include extensions when instantiating request in HTTPCoreMocker (#176)