File tree 4 files changed +6
-3
lines changed
tests/functional/idempotency
4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
- """Shared exceptions that don't belong to a single utility"""
1
+ """Shared warnings that don't belong to a single utility"""
2
2
3
3
4
4
class InvalidEnvelopeExpressionError (Exception ):
Original file line number Diff line number Diff line change 12
12
from aws_lambda_powertools .middleware_factory import lambda_handler_decorator
13
13
from aws_lambda_powertools .shared import constants
14
14
from aws_lambda_powertools .shared .functions import powertools_dev_is_set , strtobool
15
- from aws_lambda_powertools .shared .powertools_warnings import PowertoolsWarning
16
15
from aws_lambda_powertools .shared .types import AnyCallableT
17
16
from aws_lambda_powertools .utilities .idempotency .base import IdempotencyHandler
18
17
from aws_lambda_powertools .utilities .idempotency .config import IdempotencyConfig
24
23
BaseIdempotencySerializer ,
25
24
)
26
25
from aws_lambda_powertools .utilities .typing import LambdaContext
26
+ from aws_lambda_powertools .warnings import PowertoolsWarning
27
27
28
28
logger = logging .getLogger (__name__ )
29
29
Original file line number Diff line number Diff line change
1
+ """Shared exceptions that don't belong to a single utility"""
2
+
3
+
1
4
class PowertoolsWarning (UserWarning ):
2
5
"""
3
6
This class provides a custom Warning tailored for better clarity when certain situations occur.
Original file line number Diff line number Diff line change 12
12
from pytest import FixtureRequest
13
13
from pytest_mock import MockerFixture
14
14
15
- from aws_lambda_powertools .shared .powertools_warnings import PowertoolsWarning
16
15
from aws_lambda_powertools .utilities .data_classes import (
17
16
APIGatewayProxyEventV2 ,
18
17
event_source ,
52
51
PydanticSerializer ,
53
52
)
54
53
from aws_lambda_powertools .utilities .validation import envelopes , validator
54
+ from aws_lambda_powertools .warnings import PowertoolsWarning
55
55
from tests .functional .idempotency .utils import (
56
56
build_idempotency_put_item_response_stub ,
57
57
build_idempotency_put_item_stub ,
You can’t perform that action at this time.
0 commit comments