Skip to content

Commit 1c7ad09

Browse files
committed
clean up test app
1 parent e8d4137 commit 1c7ad09

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

stac_fastapi/tests/conftest.py

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,6 @@ def bulk_txn_client():
196196

197197
@pytest_asyncio.fixture(scope="session")
198198
async def app():
199-
TRANSACTIONS_EXTENSIONS = get_bool_env(
200-
"ENABLE_TRANSACTIONS_EXTENSIONS", default=True
201-
)
202-
203199
settings = AsyncSettings()
204200

205201
aggregation_extension = AggregationExtension(
@@ -211,6 +207,12 @@ async def app():
211207
aggregation_extension.GET = EsAggregationExtensionGetRequest
212208

213209
search_extensions = [
210+
TransactionExtension(
211+
client=TransactionsClient(
212+
database=database, session=None, settings=settings
213+
),
214+
settings=settings,
215+
),
214216
SortExtension(),
215217
FieldsExtension(),
216218
QueryExtension(),
@@ -219,17 +221,6 @@ async def app():
219221
FreeTextExtension(),
220222
]
221223

222-
if TRANSACTIONS_EXTENSIONS:
223-
search_extensions.insert(
224-
0,
225-
TransactionExtension(
226-
client=TransactionsClient(
227-
database=database, session=None, settings=settings
228-
),
229-
settings=settings,
230-
),
231-
)
232-
233224
extensions = [aggregation_extension] + search_extensions
234225

235226
post_request_model = create_post_request_model(search_extensions)

0 commit comments

Comments
 (0)