- update to 0.26.0:

* Added `proxy_url` parameter which allows matching on proxy
    URL.
  * Requires `httpx`==0.25.\*
  * Added `match_json` parameter which allows matching on JSON
    decoded body (matching against python representation instead
    of bytes).
  * Even if it was never documented as a feature, the
    `match_headers` parameter was not considering header names
    case when matching.
  * Matching on headers does not ignore name case anymore, the
    name must now be cased as sent (as some servers might expect
    a specific case).
  * Add `:Any` type hint to `**matchers` function arguments to
    satisfy strict type checking mode in `pyright`.
  * Python `3.7` and `3.8` are no longer supported.
  * `httpx_mock.add_response` is now returning a new
    `httpx.Response` instance upon each matching request.
    Preventing unnecessary recursion in streams.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-httpx?expand=0&rev=13
This commit is contained in:
2023-11-07 19:45:51 +00:00
committed by Git OBS Bridge
parent 892500dfca
commit 9e7dc9765d
4 changed files with 32 additions and 9 deletions

View File

@@ -1,3 +1,26 @@
-------------------------------------------------------------------
Tue Nov 7 19:44:01 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.26.0:
* Added `proxy_url` parameter which allows matching on proxy
URL.
* Requires `httpx`==0.25.\*
* Added `match_json` parameter which allows matching on JSON
decoded body (matching against python representation instead
of bytes).
* Even if it was never documented as a feature, the
`match_headers` parameter was not considering header names
case when matching.
* Matching on headers does not ignore name case anymore, the
name must now be cased as sent (as some servers might expect
a specific case).
* Add `:Any` type hint to `**matchers` function arguments to
satisfy strict type checking mode in `pyright`.
* Python `3.7` and `3.8` are no longer supported.
* `httpx_mock.add_response` is now returning a new
`httpx.Response` instance upon each matching request.
Preventing unnecessary recursion in streams.
-------------------------------------------------------------------
Sat Jul 1 09:13:35 UTC 2023 - ecsos <ecsos@opensuse.org>