mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
More consistent use of response.text/response.json in tests, closes #792
This commit is contained in:
parent
61e40e917e
commit
9dd6d1ae6d
5 changed files with 14 additions and 25 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue