0.23.1 (2023-08-02)
Fixed
- Version
0.23.0introduced a regression removing the support for mutating json content provided inhttpx_mock.add_response.- This is fixed, you can now expect the JSON return being as it was when provided to
httpx_mock.add_response:
- This is fixed, you can now expect the JSON return being as it was when provided to
mutating_json = {"content": "request 1"}
# This will return {"content": "request 1"}
httpx_mock.add_response(json=mutating_json)
mutating_json["content"] = "request 2"
# This will return {"content": "request 2"}
httpx_mock.add_response(json=mutating_json)