From d82fa032311a3ab6b127a664bdfe44f68a52d628 Mon Sep 17 00:00:00 2001 From: Gabor Schulz Date: Sat, 3 Dec 2022 05:27:05 +0100 Subject: [PATCH] Reformatted by black due to line length --- tests/tests.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/tests.py b/tests/tests.py index fe3822907..5de4edee4 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -346,15 +346,15 @@ def test_create_api_gateway_routes_with_different_auth_methods(self): ) self.assertEqual( "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", - parsable_template["Resources"]["OPTIONS0"]["Properties"]["Integration"]["IntegrationResponses"][0]["ResponseParameters"][ - "method.response.header.Access-Control-Allow-Headers" - ], + parsable_template["Resources"]["OPTIONS0"]["Properties"]["Integration"]["IntegrationResponses"][0][ + "ResponseParameters" + ]["method.response.header.Access-Control-Allow-Headers"], ) self.assertEqual( "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", - parsable_template["Resources"]["OPTIONS1"]["Properties"]["Integration"]["IntegrationResponses"][0]["ResponseParameters"][ - "method.response.header.Access-Control-Allow-Headers" - ], + parsable_template["Resources"]["OPTIONS1"]["Properties"]["Integration"]["IntegrationResponses"][0][ + "ResponseParameters" + ]["method.response.header.Access-Control-Allow-Headers"], ) self.assertTrue( parsable_template["Resources"]["OPTIONS0"]["Properties"]["MethodResponses"][0]["ResponseParameters"][ @@ -1953,7 +1953,9 @@ def test_get_domain_respects_route53_setting(self, client, template): "IsTruncated": False, "HostedZones": [{"Id": "somezone"}], } - zappa_core.route53.list_resource_record_sets.return_value = {"ResourceRecordSets": [{"Type": "CNAME", "Name": "test_domain1"}]} + zappa_core.route53.list_resource_record_sets.return_value = { + "ResourceRecordSets": [{"Type": "CNAME", "Name": "test_domain1"}] + } record = zappa_core.get_domain_name("test_domain") self.assertIsNotNone(record) @@ -2219,7 +2221,9 @@ def test_slim_handler(self): # get valid versions from tags version_match_string = "v?[0-9]+.[0-9]+.[0-9]+" - tags = [tag.strip() for tag in command_output.split("\n") if tag.strip() and re.match(version_match_string, tag.strip())] + tags = [ + tag.strip() for tag in command_output.split("\n") if tag.strip() and re.match(version_match_string, tag.strip()) + ] latest_release_tag = sorted(tags, key=version.parse)[-1] zappa_cli.create_package(use_zappa_release=latest_release_tag)