Skip to content

Commit 869929f

Browse files
committed
fix property used to test ops
1 parent 2116bad commit 869929f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

stac_fastapi/tests/extensions/test_filter.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ async def test_search_filter_extension_s_intersects_property(app_client, ctx):
493493
"filter": {
494494
"op": "s_intersects",
495495
"args": [
496-
{"property": "properties.foo__geog"},
496+
{"property": "geometry"},
497497
intersecting_geom,
498498
],
499499
},
@@ -514,7 +514,7 @@ async def test_search_filter_extension_s_contains_property(app_client, ctx):
514514
"filter": {
515515
"op": "s_contains",
516516
"args": [
517-
{"property": "properties.foo__geog"},
517+
{"property": "geometry"},
518518
contains_geom,
519519
],
520520
},
@@ -543,7 +543,7 @@ async def test_search_filter_extension_s_within_property(app_client, ctx):
543543
"filter": {
544544
"op": "s_within",
545545
"args": [
546-
{"property": "properties.foo__geog"},
546+
{"property": "geometry"},
547547
within_geom,
548548
],
549549
},
@@ -564,7 +564,7 @@ async def test_search_filter_extension_s_disjoint_property(app_client, ctx):
564564
"filter": {
565565
"op": "s_disjoint",
566566
"args": [
567-
{"property": "properties.foo__geog"},
567+
{"property": "geometry"},
568568
intersecting_geom,
569569
],
570570
},
@@ -577,7 +577,7 @@ async def test_search_filter_extension_s_disjoint_property(app_client, ctx):
577577

578578
@pytest.mark.asyncio
579579
async def test_search_filter_extension_cql2text_s_intersects_property(app_client, ctx):
580-
filter = 'S_INTERSECTS("properties.foo__geog",POINT(-81.29499784193122 35.0538290963502))'
580+
filter = 'S_INTERSECTS("geometry",POINT(-81.29499784193122 35.0538290963502))'
581581
params = {
582582
"filter": filter,
583583
"filter_lang": "cql2-text",
@@ -591,7 +591,7 @@ async def test_search_filter_extension_cql2text_s_intersects_property(app_client
591591
@pytest.mark.asyncio
592592
async def test_search_filter_extension_cql2text_s_contains_property(app_client, ctx):
593593
filter = (
594-
'S_CONTAINS("properties.foo__geog",POINT(-81.29499784193122 35.0538290963502))'
594+
'S_CONTAINS("geometry",POINT(-81.29499784193122 35.0538290963502))'
595595
)
596596
params = {
597597
"filter": filter,
@@ -605,7 +605,7 @@ async def test_search_filter_extension_cql2text_s_contains_property(app_client,
605605

606606
@pytest.mark.asyncio
607607
async def test_search_filter_extension_cql2text_s_within_property(app_client, ctx):
608-
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)))'
608+
filter = 'S_WITHIN("geometry",POLYGON((-81.29599784193122 35.06440047386145,-81.29599784193122 35.0528290963502,-81.27041291067454 35.0528290963502,-81.27041291067454 35.0640047386145,-81.29599784193122 35.06440047386145)))'
609609
params = {
610610
"filter": filter,
611611
"filter_lang": "cql2-text",
@@ -618,7 +618,7 @@ async def test_search_filter_extension_cql2text_s_within_property(app_client, ct
618618

619619
@pytest.mark.asyncio
620620
async def test_search_filter_extension_cql2text_s_disjoint_property(app_client, ctx):
621-
filter = 'S_DISJOINT("properties.foo__geog",POINT(0 0))'
621+
filter = 'S_DISJOINT("geometry",POINT(0 0))'
622622
params = {
623623
"filter": filter,
624624
"filter_lang": "cql2-text",

0 commit comments

Comments
 (0)