From 40f955dd96204f6f93bd1edd355a410651e0289c Mon Sep 17 00:00:00 2001 From: Juan Carlos Jose Camacho Date: Tue, 12 Sep 2023 11:57:33 -0600 Subject: [PATCH] Fix tests --- dataherald/tests/test_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dataherald/tests/test_api.py b/dataherald/tests/test_api.py index c50506d3..57ee2fb4 100644 --- a/dataherald/tests/test_api.py +++ b/dataherald/tests/test_api.py @@ -15,15 +15,15 @@ def test_heartbeat(): def test_scan_all_tables(): response = client.post( - "/api/v1/scanner", json={"db_connection_id": "64dfa0e103f5134086f7090c"} + "/api/v1/table-descriptions/scan", json={"db_connection_id": "64dfa0e103f5134086f7090c"} ) assert response.status_code == HTTP_200_CODE def test_scan_one_table(): response = client.post( - "/api/v1/scanner", - json={"db_connection_id": "64dfa0e103f5134086f7090c", "table_name": "foo"}, + "/api/v1/table-descriptions/scan", + json={"db_connection_id": "64dfa0e103f5134086f7090c", "table_names": ["foo"]}, ) assert response.status_code == HTTP_404_CODE