* When there's no handler for the request, add more details to
the response sent by the server about the request to help
debugging.
* Use ruff for linting. It includes some source code changes
which should not introduce functional changes, or API
changes.
* Add __repr__ to RequestHandler object so when it is compared
(eg. with the log attribute of the server) it will show the
matcher parameters.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-httpserver?expand=0&rev=26
* With werkzeug 2.3.x the headers type has been updated to not
allow integers as header values. This restriction followed up
in pytest-httpserver.
* Python versions earlier than 3.8 have been deprecated in
order to support the latest werkzeug.
* Type hinting for header_value_matcher has been fixed. From
now, specifying a callable as ``Callable[[str,
Optional[str], str], bool]`` will be accepted also.
Providing a ``HeaderValueMatcher`` object will be also
accepted as before, as it provides the same callable signature
* Fix Werkzeug deprecation warning about
``parse_authorization_header`` call.
* Replace ``parse_authorization_header`` with
``Authorization.from_header`` as suggested. This fix should
not introduce any functional change for the users.
* Fix Werkzeug deprecation warning about
``werkzeug.urls.url_decode`` call. This call has been changed
to ``urllib.parse.parse_qsl`` in the implementation.
This fix should not introduce any functional change for the
users.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-httpserver?expand=0&rev=22
- Update to 1.0.5
* Packaging of sdist and the wheel fixed by adding the extra
files only to the sdist and not to the wheel.
- Release 1.0.4
* Fixed type hinting of HeaderValueMatcher.DEFAULT_MATCHERS,
which did not allow modifications, however it is explicitly
allowed in the documentation.
* Version of flake8 library updated to require 4.0.0+ at minimum.
This is required to make flake8 working on recent python
versions.
- Release 1.0.3
* Additional type hints improvements to make the library more
mypy compliant. Imports in __init__.py have been updated to
indicate that this is a namespace package.
* Package deployment and CI has been migrated to poetry.
poetry.lock will be kept up to date. Make target "quick-test"
renamed to "test". Also, minor adjustments were made regarding
documentation generation. Make targets should be identical.
Build results like sdist, and wheel are almost identical to the
one which was made by setuptools.
OBS-URL: https://build.opensuse.org/request/show/995191
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-httpserver?expand=0&rev=15