X-Git-Url: https://git.jsancho.org/?p=datasette-connectors.git;a=blobdiff_plain;f=tests%2Ftest_api.py;fp=tests%2Ftest_api.py;h=e7303a83e697d7ecfa509cc3410e803110b55ffa;hp=25bd29757da230af08fece32442bbcd7398dc487;hb=58720a43974da688021531ed107dc8693b62ca39;hpb=afd677b9fd094e0ab7345843ddfb337378151b9e diff --git a/tests/test_api.py b/tests/test_api.py index 25bd297..e7303a8 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -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):