Backport of #2359 for 0.64.x

This commit is contained in:
Simon Willison 2024-06-21 16:18:38 -07:00
commit 7aa4bf9506
6 changed files with 11 additions and 11 deletions

View file

@ -34,7 +34,7 @@ def test_table_json(app_client):
def test_table_not_exists_json(app_client):
assert {
"ok": False,
"error": "Table not found: blah",
"error": "Table not found",
"status": 404,
"title": None,
} == app_client.get("/fixtures/blah.json").json

View file

@ -520,7 +520,7 @@ def test_csv_json_export_links_include_labels_if_foreign_keys(app_client):
def test_table_not_exists(app_client):
assert "Table not found: blah" in app_client.get("/fixtures/blah").text
assert "Table not found" in app_client.get("/fixtures/blah").text
def test_table_html_no_primary_key(app_client):