]> git.jsancho.org Git - datasette-connectors.git/blobdiff - tests/test_api.py
Check if table exists before getting table definition
[datasette-connectors.git] / tests / test_api.py
index 25bd29757da230af08fece32442bbcd7398dc487..e7303a83e697d7ecfa509cc3410e803110b55ffa 100644 (file)
@@ -64,9 +64,9 @@ def test_table_json(app_client):
 def test_table_not_exists_json(app_client):
     assert {
         'ok': False,
-        'title': 'Invalid SQL',
-        'error': 'no such table: blah',
-        'status': 400,
+        'error': 'Table not found: blah',
+        'status': 404,
+        'title': None,
     } == app_client.get('/dummy_tables/blah.json').json
 
 def test_table_shape_arrays(app_client):