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 1
1
from __future__ import annotations
2
2
3
+ from typing import TYPE_CHECKING
4
+
3
5
import pytest
4
6
5
7
from aws_lambda_powertools .event_handler import AppSyncResolver
6
8
from aws_lambda_powertools .event_handler .graphql_appsync .exceptions import InvalidBatchResponse , ResolverNotFoundError
7
9
from aws_lambda_powertools .event_handler .graphql_appsync .router import Router
8
- from aws_lambda_powertools .utilities .data_classes import AppSyncResolverEvent
9
10
from aws_lambda_powertools .utilities .typing import LambdaContext
10
11
from aws_lambda_powertools .warnings import PowertoolsUserWarning
11
12
from tests .functional .utils import load_event
12
13
14
+ if TYPE_CHECKING :
15
+ from aws_lambda_powertools .utilities .data_classes import AppSyncResolverEvent
16
+
13
17
14
18
# TESTS RECEIVING THE EVENT PARTIALLY AND PROCESS EACH RECORD PER TIME.
15
19
def test_resolve_batch_processing_with_related_events_one_at_time ():
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
+ from typing import TYPE_CHECKING
4
+
3
5
import pytest
4
6
5
7
from aws_lambda_powertools .event_handler import content_types
20
22
from aws_lambda_powertools .event_handler .middlewares .schema_validation import (
21
23
SchemaValidationMiddleware ,
22
24
)
23
- from aws_lambda_powertools .event_handler .types import EventHandlerInstance
24
25
from tests .functional .utils import load_event
25
26
27
+ if TYPE_CHECKING :
28
+ from aws_lambda_powertools .event_handler .types import EventHandlerInstance
29
+
30
+
26
31
API_REST_EVENT = load_event ("apiGatewayProxyEvent.json" )
27
32
API_RESTV2_EVENT = load_event ("apiGatewayProxyV2Event_GET.json" )
28
33
You can’t perform that action at this time.
0 commit comments