File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
stac_fastapi/elasticsearch/tests/api Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,21 @@ async def test_search_point_intersects(app_client, ctx):
201
201
assert len (resp_json ["features" ]) == 1
202
202
203
203
204
+ async def test_search_point_does_not_intersect (app_client , ctx ):
205
+ point = [15.04 , - 3.14 ]
206
+ intersects = {"type" : "Point" , "coordinates" : point }
207
+
208
+ params = {
209
+ "intersects" : intersects ,
210
+ "collections" : [ctx .item ["collection" ]],
211
+ }
212
+ resp = await app_client .post ("/search" , json = params )
213
+
214
+ assert resp .status_code == 200
215
+ resp_json = resp .json ()
216
+ assert len (resp_json ["features" ]) == 0
217
+
218
+
204
219
async def test_datetime_non_interval (app_client , ctx ):
205
220
dt_formats = [
206
221
"2020-02-12T12:30:22+00:00" ,
You can’t perform that action at this time.
0 commit comments