Linting
This commit is contained in:
parent
cb6731f340
commit
273ca63d59
92 changed files with 515 additions and 1200 deletions
|
|
@ -23,9 +23,7 @@ depends_on_template_list = {
|
|||
},
|
||||
"LaunchConfig": {
|
||||
"Type": "AWS::AutoScaling::LaunchConfiguration",
|
||||
"Properties": {
|
||||
"LaunchConfigurationName": "test-launch-config",
|
||||
},
|
||||
"Properties": {"LaunchConfigurationName": "test-launch-config",},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -47,9 +45,7 @@ depends_on_template_string = {
|
|||
},
|
||||
"LaunchConfig": {
|
||||
"Type": "AWS::AutoScaling::LaunchConfiguration",
|
||||
"Properties": {
|
||||
"LaunchConfigurationName": "test-launch-config",
|
||||
},
|
||||
"Properties": {"LaunchConfigurationName": "test-launch-config",},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1369,12 +1369,10 @@ def test_non_json_redrive_policy():
|
|||
def test_boto3_create_duplicate_stack():
|
||||
cf_conn = boto3.client("cloudformation", region_name="us-east-1")
|
||||
cf_conn.create_stack(
|
||||
StackName="test_stack",
|
||||
TemplateBody=dummy_template_json,
|
||||
StackName="test_stack", TemplateBody=dummy_template_json,
|
||||
)
|
||||
|
||||
with pytest.raises(ClientError):
|
||||
cf_conn.create_stack(
|
||||
StackName="test_stack",
|
||||
TemplateBody=dummy_template_json,
|
||||
StackName="test_stack", TemplateBody=dummy_template_json,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -2325,10 +2325,7 @@ def test_stack_dynamodb_resources_integration():
|
|||
dynamodb_client = boto3.client("dynamodb", region_name="us-east-1")
|
||||
table_desc = dynamodb_client.describe_table(TableName="myTableName")["Table"]
|
||||
table_desc["StreamSpecification"].should.equal(
|
||||
{
|
||||
"StreamEnabled": True,
|
||||
"StreamViewType": "KEYS_ONLY",
|
||||
}
|
||||
{"StreamEnabled": True, "StreamViewType": "KEYS_ONLY",}
|
||||
)
|
||||
|
||||
dynamodb_conn = boto3.resource("dynamodb", region_name="us-east-1")
|
||||
|
|
@ -2782,9 +2779,7 @@ def test_stack_events_get_attribute_integration():
|
|||
@mock_dynamodb2
|
||||
def test_dynamodb_table_creation():
|
||||
CFN_TEMPLATE = {
|
||||
"Outputs": {
|
||||
"MyTableName": {"Value": {"Ref": "MyTable"}},
|
||||
},
|
||||
"Outputs": {"MyTableName": {"Value": {"Ref": "MyTable"}},},
|
||||
"Resources": {
|
||||
"MyTable": {
|
||||
"Type": "AWS::DynamoDB::Table",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue