Skip to content

Commit

Permalink
Reformatted by black due to line length
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborschulz committed Dec 3, 2022
1 parent 87f9776 commit d82fa03
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"][
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d82fa03

Please sign in to comment.