Skip to content

Commit 0159cdb

Browse files
authored
fix test names, descriptions (#63)
1 parent 90ade34 commit 0159cdb

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/resources/test_item.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -758,10 +758,10 @@ async def test_item_search_get_query_extension(
758758
)
759759

760760

761-
async def test_item_search_get_filter_extension_cql(
761+
async def test_item_search_post_filter_extension_cql(
762762
app_client, load_test_data, load_test_collection
763763
):
764-
"""Test GET search with JSONB query (cql json filter extension)"""
764+
"""Test POST search with JSONB query (cql json filter extension)"""
765765
test_item = load_test_data("test_item.json")
766766
resp = await app_client.post(
767767
f"/collections/{test_item['collection']}/items", json=test_item
@@ -808,10 +808,10 @@ async def test_item_search_get_filter_extension_cql(
808808
)
809809

810810

811-
async def test_item_search_get_filter_extension_cql2(
811+
async def test_item_search_post_filter_extension_cql2(
812812
app_client, load_test_data, load_test_collection
813813
):
814-
"""Test GET search with JSONB query (cql2 json filter extension)"""
814+
"""Test POST search with JSONB query (cql2 json filter extension)"""
815815
test_item = load_test_data("test_item.json")
816816
resp = await app_client.post(
817817
f"/collections/{test_item['collection']}/items", json=test_item
@@ -862,10 +862,10 @@ async def test_item_search_get_filter_extension_cql2(
862862
)
863863

864864

865-
async def test_item_search_get_filter_extension_cql2_with_query_fails(
865+
async def test_item_search_post_filter_extension_cql2_with_query_fails(
866866
app_client, load_test_data, load_test_collection
867867
):
868-
"""Test GET search with JSONB query (cql2 json filter extension)"""
868+
"""Test POST search with JSONB query (cql2 json filter extension)"""
869869
test_item = load_test_data("test_item.json")
870870
resp = await app_client.post(
871871
f"/collections/{test_item['collection']}/items", json=test_item
@@ -1285,10 +1285,10 @@ async def test_preserves_extra_link(
12851285
assert extra_link[0]["href"] == expected_href
12861286

12871287

1288-
async def test_item_search_get_filter_extension_cql_explicitlang(
1288+
async def test_item_search_post_filter_extension_cql_explicitlang(
12891289
app_client, load_test_data, load_test_collection
12901290
):
1291-
"""Test GET search with JSONB query (cql json filter extension)"""
1291+
"""Test POST search with JSONB query (cql json filter extension)"""
12921292
test_item = load_test_data("test_item.json")
12931293
resp = await app_client.post(
12941294
f"/collections/{test_item['collection']}/items", json=test_item
@@ -1331,10 +1331,10 @@ async def test_item_search_get_filter_extension_cql_explicitlang(
13311331
)
13321332

13331333

1334-
async def test_item_search_get_filter_extension_cql2_2(
1334+
async def test_item_search_post_filter_extension_cql2_2(
13351335
app_client, load_test_data, load_test_collection
13361336
):
1337-
"""Test GET search with JSONB query (cql json filter extension)"""
1337+
"""Test POST search with JSONB query (cql json filter extension)"""
13381338
test_item = load_test_data("test_item.json")
13391339
resp = await app_client.post(
13401340
f"/collections/{test_item['collection']}/items", json=test_item
@@ -1421,7 +1421,7 @@ async def test_search_datetime_validation_errors(app_client):
14211421
assert resp.status_code == 400
14221422

14231423

1424-
async def test_filter_cql2text(app_client, load_test_data, load_test_collection):
1424+
async def test_get_filter_cql2text(app_client, load_test_data, load_test_collection):
14251425
"""Test GET search with cql2-text"""
14261426
test_item = load_test_data("test_item.json")
14271427
resp = await app_client.post(

0 commit comments

Comments
 (0)