Closed Colin-b closed 1 year ago
Version 0.23.0 introduced a regression removing the support for mutating json content provided in httpx_mock.add_response.
0.23.0
httpx_mock.add_response
mutating_json = {"content": "request 1"} # This will return {"content": "request 1"} httpx_mock.add_response(json=mutating_json)
mutating_json["content"] = "request 2"
httpx_mock.add_response(json=mutating_json)
Kudos, SonarCloud Quality Gate passed!
0 Bugs 0 Vulnerabilities 0 Security Hotspots 0 Code Smells
No Coverage information 0.0% Duplication
Fixed
Version
0.23.0
introduced a regression removing the support for mutating json content provided inhttpx_mock.add_response
.httpx_mock.add_response
:mutating_json["content"] = "request 2"
This will return {"content": "request 2"}
httpx_mock.add_response(json=mutating_json)