Skip to content

Commit 11c6cb1

Browse files
committed
really skip tests
1 parent 0c429c2 commit 11c6cb1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/resources/test_collection.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ async def test_collection_search_freetext(
354354
res = await app_client.get("/_mgmt/health")
355355
pgstac_version = res.json()["pgstac"]["pgstac_version"]
356356
if tuple(map(int, pgstac_version.split("."))) < (0, 9, 2):
357-
pass
357+
pytest.skip("Need PgSTAC > 0.9.2")
358358

359359
# free-text
360360
resp = await app_client.get(
@@ -397,7 +397,7 @@ async def test_collection_search_freetext_advanced(
397397
res = await app_client_advanced_freetext.get("/_mgmt/health")
398398
pgstac_version = res.json()["pgstac"]["pgstac_version"]
399399
if tuple(map(int, pgstac_version.split("."))) < (0, 9, 2):
400-
pass
400+
pytest.skip("Need PgSTAC > 0.9.2")
401401

402402
# free-text
403403
resp = await app_client_advanced_freetext.get(
@@ -447,7 +447,7 @@ async def test_all_collections_with_pagination(app_client, load_test_data):
447447
res = await app_client.get("/_mgmt/health")
448448
pgstac_version = res.json()["pgstac"]["pgstac_version"]
449449
if tuple(map(int, pgstac_version.split("."))) < (0, 9, 2):
450-
pass
450+
pytest.skip("Need PgSTAC > 0.9.2")
451451

452452
data = load_test_data("test_collection.json")
453453
collection_id = data["id"]
@@ -483,7 +483,7 @@ async def test_all_collections_without_pagination(app_client_no_ext, load_test_d
483483
res = await app_client_no_ext.get("/_mgmt/health")
484484
pgstac_version = res.json()["pgstac"]["pgstac_version"]
485485
if tuple(map(int, pgstac_version.split("."))) < (0, 9, 2):
486-
pass
486+
pytest.skip("Need PgSTAC > 0.9.2")
487487

488488
data = load_test_data("test_collection.json")
489489
collection_id = data["id"]
@@ -512,7 +512,7 @@ async def test_get_collections_search_pagination(
512512
res = await app_client.get("/_mgmt/health")
513513
pgstac_version = res.json()["pgstac"]["pgstac_version"]
514514
if tuple(map(int, pgstac_version.split("."))) < (0, 9, 2):
515-
pass
515+
pytest.skip("Need PgSTAC > 0.9.2")
516516

517517
resp = await app_client.get("/collections")
518518
assert resp.json()["numberReturned"] == 2
@@ -647,7 +647,7 @@ async def test_get_collections_search_offset_1(
647647
res = await app_client.get("/_mgmt/health")
648648
pgstac_version = res.json()["pgstac"]["pgstac_version"]
649649
if tuple(map(int, pgstac_version.split("."))) < (0, 9, 2):
650-
pass
650+
pytest.skip("Need PgSTAC > 0.9.2")
651651

652652
# BUG: pgstac doesn't return a `prev` link when limit is not set
653653
# offset=1, should have a `previous` link

tests/resources/test_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,7 @@ async def test_item_search_freetext(app_client, load_test_data, load_test_collec
16961696
res = await app_client.get("/_mgmt/health")
16971697
pgstac_version = res.json()["pgstac"]["pgstac_version"]
16981698
if tuple(map(int, pgstac_version.split("."))) < (0, 9, 2):
1699-
pass
1699+
pytest.skip("Need PgSTAC > 0.9.2")
17001700

17011701
test_item = load_test_data("test_item.json")
17021702
resp = await app_client.post(

0 commit comments

Comments
 (0)