File tree 2 files changed +2
-2
lines changed
aws_lambda_powertools/event_handler
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 43
43
_DYNAMIC_ROUTE_PATTERN = r"(<\w+>)"
44
44
_SAFE_URI = "-._~()'!*:@,;=" # https://www.ietf.org/rfc/rfc3986.txt
45
45
# API GW/ALB decode non-safe URI chars; we must support them too
46
- _UNSAFE_URI = "%<> \[\]{}|^" # noqa: W605
46
+ _UNSAFE_URI = r "%<> \[\]{}|^"
47
47
_NAMED_GROUP_BOUNDARY_PATTERN = rf"(?P\1[{ _SAFE_URI } { _UNSAFE_URI } \\w]+)"
48
48
_ROUTE_REGEX = "^{}$"
49
49
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def test_authorizer_response_invalid_verb(builder: APIGatewayAuthorizerResponse)
31
31
32
32
33
33
def test_authorizer_response_invalid_resource (builder : APIGatewayAuthorizerResponse ):
34
- with pytest .raises (ValueError , match = "Invalid resource path: \$." ): # noqa: W605
34
+ with pytest .raises (ValueError , match = r "Invalid resource path: \$." ):
35
35
# GIVEN an invalid resource path "$"
36
36
# WHEN calling deny_method
37
37
builder .deny_route (http_method = HttpVerb .GET .value , resource = "$" )
You can’t perform that action at this time.
0 commit comments