File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -196,10 +196,6 @@ def bulk_txn_client():
196196
197197@pytest_asyncio .fixture (scope = "session" ) 
198198async  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 )
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments