Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjc712 committed Sep 12, 2023
1 parent 5f7ff1f commit 40f955d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dataherald/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 40f955d

Please sign in to comment.