Skip to content

Commit 12977bf

Browse files
committed
more tests
1 parent d4e229d commit 12977bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/api/test_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,12 @@ async def test_landing_links(app_client):
8787

8888
async def test_get_queryables_content_type(app_client, load_test_collection):
8989
resp = await app_client.get("queryables")
90+
assert resp.status_code == 200
9091
assert resp.headers["content-type"] == "application/schema+json"
9192

9293
coll = load_test_collection
9394
resp = await app_client.get(f"collections/{coll['id']}/queryables")
95+
assert resp.status_code == 200
9496
assert resp.headers["content-type"] == "application/schema+json"
9597

9698

@@ -488,6 +490,7 @@ async def test_search_duplicate_forward_headers(
488490
@pytest.mark.asyncio
489491
async def test_base_queryables(load_test_data, app_client, load_test_collection):
490492
resp = await app_client.get("/queryables")
493+
assert resp.status_code == 200
491494
assert resp.headers["Content-Type"] == "application/schema+json"
492495
q = resp.json()
493496
assert q["$id"].endswith("/queryables")
@@ -499,6 +502,7 @@ async def test_base_queryables(load_test_data, app_client, load_test_collection)
499502
@pytest.mark.asyncio
500503
async def test_collection_queryables(load_test_data, app_client, load_test_collection):
501504
resp = await app_client.get("/collections/test-collection/queryables")
505+
assert resp.status_code == 200
502506
assert resp.headers["Content-Type"] == "application/schema+json"
503507
q = resp.json()
504508
assert q["$id"].endswith("/collections/test-collection/queryables")

0 commit comments

Comments
 (0)