File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
aws_lambda_powertools/event_handler Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 4343_DYNAMIC_ROUTE_PATTERN = r"(<\w+>)"
4444_SAFE_URI = "-._~()'!*:@,;=" # https://www.ietf.org/rfc/rfc3986.txt
4545# API GW/ALB decode non-safe URI chars; we must support them too
46- _UNSAFE_URI = "%<> \[\]{}|^" # noqa: W605
46+ _UNSAFE_URI = r "%<> \[\]{}|^"
4747_NAMED_GROUP_BOUNDARY_PATTERN = rf"(?P\1[{ _SAFE_URI } { _UNSAFE_URI } \\w]+)"
4848_ROUTE_REGEX = "^{}$"
4949
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def test_authorizer_response_invalid_verb(builder: APIGatewayAuthorizerResponse)
3131
3232
3333def 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: \$." ):
3535 # GIVEN an invalid resource path "$"
3636 # WHEN calling deny_method
3737 builder .deny_route (http_method = HttpVerb .GET .value , resource = "$" )
You can’t perform that action at this time.
0 commit comments