(encoding, expected)
| 45 | ), |
| 46 | ) |
| 47 | def test_guess_by_bom(encoding, expected): |
| 48 | content = '\ufeff{"abc": 123}'.encode(encoding) |
| 49 | response = httpx.Response(200, content=content) |
| 50 | assert response.json() == {"abc": 123} |
| 51 | |
| 52 | |
| 53 | def test_logging_request(server, caplog): |