File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed 
tests/functional/event_handler/required_dependencies Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11from  __future__ import  annotations 
22
3+ from  typing  import  TYPE_CHECKING 
4+ 
35import  pytest 
46
57from  aws_lambda_powertools .event_handler  import  AppSyncResolver 
68from  aws_lambda_powertools .event_handler .graphql_appsync .exceptions  import  InvalidBatchResponse , ResolverNotFoundError 
79from  aws_lambda_powertools .event_handler .graphql_appsync .router  import  Router 
8- from  aws_lambda_powertools .utilities .data_classes  import  AppSyncResolverEvent 
910from  aws_lambda_powertools .utilities .typing  import  LambdaContext 
1011from  aws_lambda_powertools .warnings  import  PowertoolsUserWarning 
1112from  tests .functional .utils  import  load_event 
1213
14+ if  TYPE_CHECKING :
15+     from  aws_lambda_powertools .utilities .data_classes  import  AppSyncResolverEvent 
16+ 
1317
1418# TESTS RECEIVING THE EVENT PARTIALLY AND PROCESS EACH RECORD PER TIME. 
1519def  test_resolve_batch_processing_with_related_events_one_at_time ():
Original file line number Diff line number Diff line change 11from  __future__ import  annotations 
22
3+ from  typing  import  TYPE_CHECKING 
4+ 
35import  pytest 
46
57from  aws_lambda_powertools .event_handler  import  content_types 
2022from  aws_lambda_powertools .event_handler .middlewares .schema_validation  import  (
2123    SchemaValidationMiddleware ,
2224)
23- from  aws_lambda_powertools .event_handler .types  import  EventHandlerInstance 
2425from  tests .functional .utils  import  load_event 
2526
27+ if  TYPE_CHECKING :
28+     from  aws_lambda_powertools .event_handler .types  import  EventHandlerInstance 
29+ 
30+ 
2631API_REST_EVENT  =  load_event ("apiGatewayProxyEvent.json" )
2732API_RESTV2_EVENT  =  load_event ("apiGatewayProxyV2Event_GET.json" )
2833
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments