@@ -95,7 +95,6 @@ def test_app_search_response(load_test_data, app_client, es_transactions):
95
95
)
96
96
97
97
98
- # @pytest.mark.skip(reason="this all passes manually?? assert 0 == 1")
99
98
def test_app_context_extension (load_test_data , app_client , es_transactions , es_core ):
100
99
item = load_test_data ("test_item.json" )
101
100
collection = load_test_data ("test_collection.json" )
@@ -162,11 +161,11 @@ def test_app_query_extension_gt(load_test_data, app_client, es_transactions):
162
161
)
163
162
164
163
165
- @pytest .mark .skip (reason = "assert 0 == 1" )
164
+ # @pytest.mark.skip(reason="assert 0 == 1")
166
165
def test_app_query_extension_gte (load_test_data , app_client , es_transactions ):
167
166
test_item = load_test_data ("test_item.json" )
168
167
es_transactions .create_item (test_item , request = MockStarletteRequest )
169
-
168
+ time . sleep ( 1 )
170
169
params = {"query" : {"proj:epsg" : {"gte" : test_item ["properties" ]["proj:epsg" ]}}}
171
170
resp = app_client .post ("/search" , json = params )
172
171
assert resp .status_code == 200
@@ -215,14 +214,16 @@ def test_app_query_extension_limit_10000(load_test_data, app_client, es_transact
215
214
)
216
215
217
216
218
- @pytest .mark .skip (reason = "sort not fully implemented " )
217
+ @pytest .mark .skip (reason = "No mapping found for [properties__datetime.keyword] in order to sort on " )
219
218
def test_app_sort_extension (load_test_data , app_client , es_transactions ):
220
219
first_item = load_test_data ("test_item.json" )
221
220
item_date = datetime .strptime (
222
221
first_item ["properties" ]["datetime" ], "%Y-%m-%dT%H:%M:%SZ"
223
222
)
224
223
es_transactions .create_item (first_item , request = MockStarletteRequest )
225
224
225
+ time .sleep (1 )
226
+
226
227
second_item = load_test_data ("test_item.json" )
227
228
second_item ["id" ] = "another-item"
228
229
another_item_date = item_date - timedelta (days = 1 )
@@ -231,6 +232,8 @@ def test_app_sort_extension(load_test_data, app_client, es_transactions):
231
232
)
232
233
es_transactions .create_item (second_item , request = MockStarletteRequest )
233
234
235
+ time .sleep (1 )
236
+
234
237
params = {
235
238
"collections" : [first_item ["collection" ]],
236
239
"sortby" : [{"field" : "datetime" , "direction" : "desc" }],
0 commit comments