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

@ -606,9 +606,7 @@ def test_row_html_simple_primary_key(app_client):
def test_table_not_exists(app_client):
assert "Table not found: blah" in app_client.get("/fixtures/blah").body.decode(
"utf8"
)
assert "Table not found: blah" in app_client.get("/fixtures/blah").text
def test_table_html_no_primary_key(app_client):