style with black
This commit is contained in:
parent
7591074453
commit
503eeb51ae
@ -431,7 +431,9 @@ class LogGroup(BaseModel):
|
|||||||
properties = cloudformation_json["Properties"]
|
properties = cloudformation_json["Properties"]
|
||||||
log_group_name = properties["LogGroupName"]
|
log_group_name = properties["LogGroupName"]
|
||||||
tags = properties.get("Tags", {})
|
tags = properties.get("Tags", {})
|
||||||
return logs_backends[region_name].create_log_group(log_group_name, tags, **properties)
|
return logs_backends[region_name].create_log_group(
|
||||||
|
log_group_name, tags, **properties
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
cloudwatch_backends = {}
|
cloudwatch_backends = {}
|
||||||
|
@ -2373,9 +2373,7 @@ def test_create_log_group_using_fntransform():
|
|||||||
}
|
}
|
||||||
|
|
||||||
cf_conn = boto3.client("cloudformation", "us-west-2")
|
cf_conn = boto3.client("cloudformation", "us-west-2")
|
||||||
cf_conn.create_stack(
|
cf_conn.create_stack(StackName="test_stack", TemplateBody=json.dumps(template))
|
||||||
StackName="test_stack", TemplateBody=json.dumps(template),
|
|
||||||
)
|
|
||||||
|
|
||||||
logs_conn = boto3.client("logs", region_name="us-west-2")
|
logs_conn = boto3.client("logs", region_name="us-west-2")
|
||||||
log_group = logs_conn.describe_log_groups()["logGroups"][0]
|
log_group = logs_conn.describe_log_groups()["logGroups"][0]
|
||||||
@ -2401,7 +2399,7 @@ def test_stack_events_create_rule_integration():
|
|||||||
}
|
}
|
||||||
cf_conn = boto3.client("cloudformation", "us-west-2")
|
cf_conn = boto3.client("cloudformation", "us-west-2")
|
||||||
cf_conn.create_stack(
|
cf_conn.create_stack(
|
||||||
StackName="test_stack", TemplateBody=json.dumps(events_template),
|
StackName="test_stack", TemplateBody=json.dumps(events_template)
|
||||||
)
|
)
|
||||||
|
|
||||||
rules = boto3.client("events", "us-west-2").list_rules()
|
rules = boto3.client("events", "us-west-2").list_rules()
|
||||||
@ -2429,7 +2427,7 @@ def test_stack_events_delete_rule_integration():
|
|||||||
}
|
}
|
||||||
cf_conn = boto3.client("cloudformation", "us-west-2")
|
cf_conn = boto3.client("cloudformation", "us-west-2")
|
||||||
cf_conn.create_stack(
|
cf_conn.create_stack(
|
||||||
StackName="test_stack", TemplateBody=json.dumps(events_template),
|
StackName="test_stack", TemplateBody=json.dumps(events_template)
|
||||||
)
|
)
|
||||||
|
|
||||||
rules = boto3.client("events", "us-west-2").list_rules()
|
rules = boto3.client("events", "us-west-2").list_rules()
|
||||||
@ -2458,7 +2456,7 @@ def test_stack_events_create_rule_without_name_integration():
|
|||||||
}
|
}
|
||||||
cf_conn = boto3.client("cloudformation", "us-west-2")
|
cf_conn = boto3.client("cloudformation", "us-west-2")
|
||||||
cf_conn.create_stack(
|
cf_conn.create_stack(
|
||||||
StackName="test_stack", TemplateBody=json.dumps(events_template),
|
StackName="test_stack", TemplateBody=json.dumps(events_template)
|
||||||
)
|
)
|
||||||
|
|
||||||
rules = boto3.client("events", "us-west-2").list_rules()
|
rules = boto3.client("events", "us-west-2").list_rules()
|
||||||
@ -2477,7 +2475,7 @@ def test_stack_events_create_rule_as_target():
|
|||||||
"Properties": {
|
"Properties": {
|
||||||
"LogGroupName": {"Fn::GetAtt": ["Event", "Arn"]},
|
"LogGroupName": {"Fn::GetAtt": ["Event", "Arn"]},
|
||||||
"RetentionInDays": 3,
|
"RetentionInDays": 3,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"Event": {
|
"Event": {
|
||||||
"Type": "AWS::Events::Rule",
|
"Type": "AWS::Events::Rule",
|
||||||
@ -2485,12 +2483,12 @@ def test_stack_events_create_rule_as_target():
|
|||||||
"State": "ENABLED",
|
"State": "ENABLED",
|
||||||
"ScheduleExpression": "rate(5 minutes)",
|
"ScheduleExpression": "rate(5 minutes)",
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
cf_conn = boto3.client("cloudformation", "us-west-2")
|
cf_conn = boto3.client("cloudformation", "us-west-2")
|
||||||
cf_conn.create_stack(
|
cf_conn.create_stack(
|
||||||
StackName="test_stack", TemplateBody=json.dumps(events_template),
|
StackName="test_stack", TemplateBody=json.dumps(events_template)
|
||||||
)
|
)
|
||||||
|
|
||||||
rules = boto3.client("events", "us-west-2").list_rules()
|
rules = boto3.client("events", "us-west-2").list_rules()
|
||||||
|
Loading…
Reference in New Issue
Block a user