Python library to mock httpx with request patterns and responses
Provides
Requires
License
BSD-3-Clause
Changelog
* Sun Mar 30 2025 Dirk Müller <dmueller@suse.com>
- update to 0.22.0:
* Support HTTPX 0.28.0, thanks @ndhansen
* Drop support for Python 3.7, to align with HTTPX 0.25.0
* Update CI test to not fail fast and cancel workflows
* Add dependabot to check GitHub actions packages
* Add Python 3.13 to test suite
- drop respx-pr267-httpx0.28.patch,
respx-pr278-httpx0.28.patch: upstream
* Thu Dec 12 2024 Ben Greiner <code@bnavigator.de>
- Add patches for httpx 0.28
* respx-pr267-httpx0.28.patch gh#lundberg/respx#267
* respx-pr278-httpx0.28.patch gh#lundberg/respx#278
* Wed May 22 2024 Johannes Kastl <opensuse_buildservice@ojkastl.de>
- add sle15_python_module_pythons
* Sat Apr 20 2024 Dirk Müller <dmueller@suse.com>
- update to 0.21.1:
* Fix `files` pattern not handling `str` and `BytesIO`
* Add support for `None` values in `data` pattern
* Thu Mar 21 2024 Dirk Müller <dmueller@suse.com>
- update to 0.21.0:
* Fix matching request data when files are provided
* Add support for data\_\_contains lookup
* Add `files` pattern to support matching on uploads
* Add `SetCookie` utility for easier mocking of response cookie
headers
* Enhance documentation on iterable side effects
* Enhance documentation on named routes and add tip about a
catch-all route
* Tue Jan 09 2024 Dirk Müller <dmueller@suse.com>
- update to 0.20.2:
* Better assertion output for `assert_all_called`
* Support for quoted path pattern matching
* Enable content\_\_contains pattern, thanks @rjprins
* Added initial `CONTRIBUTING.md`, thanks @morenoh149
* Docs about retrieving mocked calls, thanks
* Docs about `Router.assert_all_called()`, thanks @BeyondEvil
for input
- drop use-real-ipv6-address.patch (upstream)
* Fri Jun 16 2023 Steve Kowalik <steven.kowalik@suse.com>
- Add patch use-real-ipv6-address.patch:
* Use a real IPv6 address to avoid an address parsing exception
* Mon Jan 16 2023 Daniel Garcia <daniel.garcia@suse.com>
- Update to 0.20.1
* Support HTTPX 0.23.1, thanks @g-as for input (#223)
* Wed Oct 12 2022 Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to version 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)
* Mon Aug 22 2022 Steve Kowalik <steven.kowalik@suse.com>
- Run pytest with --asyncio-mode=auto due to new release of
pytest-asyncio.
* Tue Aug 02 2022 Steve Kowalik <steven.kowalik@suse.com>
- Initial package for 0.19.2
Files
/usr/lib/python3.11/site-packages/respx
/usr/lib/python3.11/site-packages/respx-0.22.0.dist-info
/usr/lib/python3.11/site-packages/respx-0.22.0.dist-info/INSTALLER
/usr/lib/python3.11/site-packages/respx-0.22.0.dist-info/LICENSE.md
/usr/lib/python3.11/site-packages/respx-0.22.0.dist-info/METADATA
/usr/lib/python3.11/site-packages/respx-0.22.0.dist-info/RECORD
/usr/lib/python3.11/site-packages/respx-0.22.0.dist-info/REQUESTED
/usr/lib/python3.11/site-packages/respx-0.22.0.dist-info/WHEEL
/usr/lib/python3.11/site-packages/respx-0.22.0.dist-info/entry_points.txt
/usr/lib/python3.11/site-packages/respx-0.22.0.dist-info/top_level.txt
/usr/lib/python3.11/site-packages/respx/__init__.py
/usr/lib/python3.11/site-packages/respx/__pycache__
/usr/lib/python3.11/site-packages/respx/__pycache__/__init__.cpython-311.opt-1.pyc
/usr/lib/python3.11/site-packages/respx/__pycache__/__init__.cpython-311.pyc
/usr/lib/python3.11/site-packages/respx/__pycache__/__version__.cpython-311.opt-1.pyc
/usr/lib/python3.11/site-packages/respx/__pycache__/__version__.cpython-311.pyc
/usr/lib/python3.11/site-packages/respx/__pycache__/api.cpython-311.opt-1.pyc
/usr/lib/python3.11/site-packages/respx/__pycache__/api.cpython-311.pyc
/usr/lib/python3.11/site-packages/respx/__pycache__/fixtures.cpython-311.opt-1.pyc
/usr/lib/python3.11/site-packages/respx/__pycache__/fixtures.cpython-311.pyc
/usr/lib/python3.11/site-packages/respx/__pycache__/handlers.cpython-311.opt-1.pyc
/usr/lib/python3.11/site-packages/respx/__pycache__/handlers.cpython-311.pyc
/usr/lib/python3.11/site-packages/respx/__pycache__/mocks.cpython-311.opt-1.pyc
/usr/lib/python3.11/site-packages/respx/__pycache__/mo