./www/py-respx, Utility for mocking out the Python HTTPX library

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.21.1, Package name: py312-respx-0.21.1, Maintainer: pkgsrc-users

RESPX is a simple, yet powerful, utility for mocking out the HTTPX, and HTTP
Core, libraries.


Master sites:

Filesize: 27.643 KB

Version history: (Expand)


CVS history: (Expand)


   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-04-02 21:36:49 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-respx: updated to 0.21.1

0.21.1

Fixed

- Fix `files` pattern not handling `str` and `BytesIO`, thanks @pierremonico for \ 
input

Added

- Add support for `None` values in `data` pattern, thanks @slingshotvfx for issue
   2024-03-24 18:17:59 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-respx: updated to 0.21.0

0.21.0 - 2024-03-19

Fixed

- Fix matching request data when files are provided, thanks @ziima for input

Added

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

Changed

- Enhance documentation on iterable side effects
- Enhance documentation on named routes and add tip about a catch-all route
   2023-07-24 20:53:11 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-respx: updated to 0.20.2

0.20.2

Fixed
- Better assertion output for `assert_all_called`
- Support for quoted path pattern matching

Added
- Enable content\_\_contains pattern
- Added initial `CONTRIBUTING.md`

Changed
- Docs about retrieving mocked calls
- Docs about `Router.assert_all_called()`
   2022-11-18 19:55:12 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-respx: updated to 0.20.1

0.20.1

Fixed

- Support HTTPX 0.23.1, thanks @g-as for input

Added

- Officially support Python 3.11
- Run pre-commit hooks in CI workflow

Changed

- Bump autoflake, thanks @antonagestam

Removed

- Drop support for Python 3.6
   2022-10-21 14:29:32 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-respx: updated to 0.20.0

0.20.0

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

Fixed
- Correct type hints for side effects

Added
- Runs `mypy` on both tests and respx
- Added nox test session for python 3.11
- Added `Call.has_response` helper, now that `.response` raises
   2022-02-06 08:53:10 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-respx: updated to 0.19.2

0.19.2
Fixed
- Better cleanup before building egg
   2022-01-11 08:10:39 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-respx: updated to 0.19.1

0.19.1

Fixed
- Allow first path segments containing colons
- Fix license classifier
- Fix typos