Jonas Lundberg
Jonas Lundberg
Consider raising a warning when a configured decorated function is missing the `respx_mock` arg. Related to #196.
It might be of use if RESPX had a `MockStream` utility that could be passed as stream when creating a `httpx.Response`. The `MockStream` should suport both *sync* and *async* contexts....
Should RESPX maybe use [httpx.json](https://github.com/encode/httpx/pull/1352) once merged and released?
As mentioned in #87, it might be of interest to allow matching a request on files being sent. - What do we want to match on? - Is it even...
This PR resolves an untested backwards incompatible schema change that sneaked in along with the `3.12` release. In the nested view of `ViewSetMixin`, the `head` method is auto mapped [here](https://github.com/encode/django-rest-framework/blob/1ec0f86b585cd87e4b413aeaad1ecc947bacfef2/rest_framework/viewsets.py#L107)...
If a serializer has a field named the same as DRF's `Serializer` class properties; `data`, `errors` and `fields`, an assignment error will be thrown.
This is a gentle proposal to start depending on [RESPX](https://lundberg.github.io/respx/), hope I'm not stepping on anyone's toes here. Mainly I feel that by combining the efforts of `pytest_httpx` and `RESPX`,...
This PR solves the issue of the `streaming_bulk` and `parallel_bulk` helpers discarding original input actions while exhausting the generator. Somewhat related to #940 and probably solves that issue as well....
**Describe the bug** Running `semgrep` complains about `libpcre.1.dylib` not loaded. Looks to be same issue as #2624, but for macOS. **To Reproduce** ```sh # Install $ python -m venv .venv...
e.g. ```py @respx.mock def test_called(): respx.get("https://example.com/foobar", name="foobar") respx.get("https://example.com/hamspam", name="hamspam") with respx.assert_call_count(foobar=1, hamspam=0): httpx.get("https://example.com/foobar") ```