More consistent use of response.text/response.json in tests, closes #792

This commit is contained in:
Simon Willison 2020-06-02 14:29:12 -07:00
commit 9dd6d1ae6d
5 changed files with 14 additions and 25 deletions

View file

@ -101,7 +101,7 @@ def test_csv_with_non_ascii_characters(app_client):
)
assert response.status == 200
assert "text/plain; charset=utf-8" == response.headers["content-type"]
assert "text,number\r\n𝐜𝐢𝐭𝐢𝐞𝐬,1\r\nbob,2\r\n" == response.body.decode("utf8")
assert "text,number\r\n𝐜𝐢𝐭𝐢𝐞𝐬,1\r\nbob,2\r\n" == response.text
def test_max_csv_mb(app_client_csv_max_mb_one):