Skip to content

Commit ce6e304

Browse files
committed
add asyncio decorator to added tests
1 parent 995ade2 commit ce6e304

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

stac_fastapi/tests/extensions/test_filter.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ async def test_search_filter_extension_isnull_get(app_client, ctx):
483483
assert len(resp.json()["features"]) == 1
484484

485485

486+
@pytest.mark.asyncio
486487
async def test_search_filter_extension_s_intersects_property(app_client, ctx):
487488
intersecting_geom = {
488489
"coordinates": [-81.29499784193122, 35.0538290963502],
@@ -503,6 +504,7 @@ async def test_search_filter_extension_s_intersects_property(app_client, ctx):
503504
assert len(resp_json["features"]) == 1
504505

505506

507+
@pytest.mark.asyncio
506508
async def test_search_filter_extension_s_contains_property(app_client, ctx):
507509
contains_geom = {
508510
"coordinates": [-81.29499784193122, 35.0538290963502],
@@ -523,6 +525,7 @@ async def test_search_filter_extension_s_contains_property(app_client, ctx):
523525
assert len(resp_json["features"]) == 1
524526

525527

528+
@pytest.mark.asyncio
526529
async def test_search_filter_extension_s_within_property(app_client, ctx):
527530
within_geom = {
528531
"coordinates": [
@@ -551,6 +554,7 @@ async def test_search_filter_extension_s_within_property(app_client, ctx):
551554
assert len(resp_json["features"]) == 1
552555

553556

557+
@pytest.mark.asyncio
554558
async def test_search_filter_extension_s_disjoint_property(app_client, ctx):
555559
intersecting_geom = {
556560
"coordinates": [0, 0],
@@ -571,6 +575,7 @@ async def test_search_filter_extension_s_disjoint_property(app_client, ctx):
571575
assert len(resp_json["features"]) == 1
572576

573577

578+
@pytest.mark.asyncio
574579
async def test_search_filter_extension_cql2text_s_intersects_property(app_client, ctx):
575580
filter = 'S_INTERSECTS("properties.foo__geog",POINT(-81.29499784193122 35.0538290963502))'
576581
params = {
@@ -583,6 +588,7 @@ async def test_search_filter_extension_cql2text_s_intersects_property(app_client
583588
assert len(resp_json["features"]) == 1
584589

585590

591+
@pytest.mark.asyncio
586592
async def test_search_filter_extension_cql2text_s_contains_property(app_client, ctx):
587593
filter = (
588594
'S_CONTAINS("properties.foo__geog",POINT(-81.29499784193122 35.0538290963502))'
@@ -597,6 +603,7 @@ async def test_search_filter_extension_cql2text_s_contains_property(app_client,
597603
assert len(resp_json["features"]) == 1
598604

599605

606+
@pytest.mark.asyncio
600607
async def test_search_filter_extension_cql2text_s_within_property(app_client, ctx):
601608
filter = 'S_WITHIN("properties.foo__geog",POLYGON((-81.29599784193122 35.06440047386145,-81.29599784193122 35.0528290963502,-81.27041291067454 35.0528290963502,-81.27041291067454 35.0640047386145,-81.29599784193122 35.06440047386145)))'
602609
params = {
@@ -609,6 +616,7 @@ async def test_search_filter_extension_cql2text_s_within_property(app_client, ct
609616
assert len(resp_json["features"]) == 1
610617

611618

619+
@pytest.mark.asyncio
612620
async def test_search_filter_extension_cql2text_s_disjoint_property(app_client, ctx):
613621
filter = 'S_DISJOINT("properties.foo__geog",POINT(0 0))'
614622
params = {

0 commit comments

Comments
 (0)