Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aaythapa committed May 29, 2024
1 parent ac2842d commit b3215a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
9 changes: 8 additions & 1 deletion samtranslator/region_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ def is_apigw_edge_configuration_supported(cls) -> bool:
:return: True, if API Gateway does not support Edge configuration
"""

return ArnGenerator.get_partition_name() not in ["aws-us-gov", "aws-iso", "aws-iso-b", "aws-cn", "aws-iso-e", "aws-iso-f"]
return ArnGenerator.get_partition_name() not in [
"aws-us-gov",
"aws-iso",
"aws-iso-b",
"aws-cn",
"aws-iso-e",
"aws-iso-f",
]

@classmethod
def is_service_supported(cls, service, region=None): # type: ignore[no-untyped-def]
Expand Down
11 changes: 1 addition & 10 deletions tests/unit/test_region_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,7 @@ def test_when_apigw_edge_configuration_supported(self, partition):

self.assertTrue(RegionConfiguration.is_apigw_edge_configuration_supported())

@parameterized.expand(
[
["aws-cn"],
["aws-us-gov"],
["aws-iso"],
["aws-iso-b"],
["aws-iso-e"],
["aws-iso-f"]
]
)
@parameterized.expand([["aws-cn"], ["aws-us-gov"], ["aws-iso"], ["aws-iso-b"], ["aws-iso-e"], ["aws-iso-f"]])
def test_when_apigw_edge_configuration_is_not_supported(self, partition):
with patch(
"samtranslator.translator.arn_generator.ArnGenerator.get_partition_name"
Expand Down

0 comments on commit b3215a5

Please sign in to comment.