mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Backport of #2359 for 0.64.x
This commit is contained in:
parent
6c941e30c5
commit
7aa4bf9506
6 changed files with 11 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue