From b3215a5d4f0d0aaa39d37ffbb17454440be9964f Mon Sep 17 00:00:00 2001 From: Aayush Thapa Date: Wed, 29 May 2024 10:06:13 -0700 Subject: [PATCH] format fix --- samtranslator/region_configuration.py | 9 ++++++++- tests/unit/test_region_configuration.py | 11 +---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/samtranslator/region_configuration.py b/samtranslator/region_configuration.py index 42d6dcbde..a12750d11 100644 --- a/samtranslator/region_configuration.py +++ b/samtranslator/region_configuration.py @@ -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] diff --git a/tests/unit/test_region_configuration.py b/tests/unit/test_region_configuration.py index efd53aa9b..9cbb10f66 100644 --- a/tests/unit/test_region_configuration.py +++ b/tests/unit/test_region_configuration.py @@ -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"