- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for test_explicit_response_class_uses_json_dumps (0.22 seconds)
-
tests/test_dump_json_fast_path.py
response = client.get("/default") assert response.status_code == 200 assert response.json() == {"name": "widget", "price": 9.99} mock_dumps.assert_not_called() def test_explicit_response_class_uses_json_dumps(): """When response_class is explicitly set to JSONResponse, the normal path is used and json.dumps is called via JSONResponse.render().""" with patch(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 22 16:07:19 GMT 2026 - 1.4K bytes - Click Count (0)