File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 2525)
2626from stac_fastapi .core .rate_limit import setup_rate_limit
2727from stac_fastapi .core .utilities import get_bool_env
28+ from stac_fastapi .extensions .core import (
29+ AggregationExtension ,
30+ FieldsExtension ,
31+ FilterExtension ,
32+ FreeTextExtension ,
33+ SortExtension ,
34+ TokenPaginationExtension ,
35+ TransactionExtension ,
36+ )
2837from stac_fastapi .sfeos_helpers .aggregation import EsAsyncBaseAggregationClient
2938from stac_fastapi .sfeos_helpers .mappings import ITEMS_INDEX_PREFIX
39+ from stac_fastapi .types .config import Settings
40+
41+ os .environ .setdefault ("ENABLE_COLLECTIONS_SEARCH_ROUTE" , "true" )
3042
3143if os .getenv ("BACKEND" , "elasticsearch" ).lower () == "opensearch" :
3244 from stac_fastapi .opensearch .app import app_config
5163 create_index_templates ,
5264 )
5365
54- from stac_fastapi .extensions .core import (
55- AggregationExtension ,
56- FieldsExtension ,
57- FilterExtension ,
58- FreeTextExtension ,
59- SortExtension ,
60- TokenPaginationExtension ,
61- TransactionExtension ,
62- )
63- from stac_fastapi .types .config import Settings
64-
6566DATA_DIR = os .path .join (os .path .dirname (__file__ ), "data" )
6667
6768
@@ -204,7 +205,6 @@ def bulk_txn_client():
204205
205206@pytest_asyncio .fixture (scope = "session" )
206207async def app ():
207- os .environ ["ENABLE_COLLECTIONS_SEARCH_ROUTE" ] = "true"
208208 return StacApi (** app_config ).app
209209
210210
You can’t perform that action at this time.
0 commit comments