Linting
This commit is contained in:
parent
cb6731f340
commit
273ca63d59
92 changed files with 515 additions and 1200 deletions
|
|
@ -2,6 +2,7 @@ from __future__ import unicode_literals
|
|||
|
||||
import boto
|
||||
import boto3
|
||||
|
||||
# Ensure 'pytest.raises' context manager support for Python 2.6
|
||||
import pytest
|
||||
import sure # noqa
|
||||
|
|
|
|||
|
|
@ -144,9 +144,7 @@ def test_create_flow_log_create():
|
|||
|
||||
bucket = s3.create_bucket(
|
||||
Bucket="test-flow-logs",
|
||||
CreateBucketConfiguration={
|
||||
"LocationConstraint": "us-west-1",
|
||||
},
|
||||
CreateBucketConfiguration={"LocationConstraint": "us-west-1",},
|
||||
)
|
||||
|
||||
response = client.create_flow_logs(
|
||||
|
|
|
|||
|
|
@ -211,9 +211,7 @@ def test_instance_detach_volume_wrong_path():
|
|||
ImageId="ami-d3adb33f",
|
||||
MinCount=1,
|
||||
MaxCount=1,
|
||||
BlockDeviceMappings=[
|
||||
{"DeviceName": "/dev/sda1", "Ebs": {"VolumeSize": 50}},
|
||||
],
|
||||
BlockDeviceMappings=[{"DeviceName": "/dev/sda1", "Ebs": {"VolumeSize": 50}},],
|
||||
)
|
||||
instance = result[0]
|
||||
for volume in instance.volumes.all():
|
||||
|
|
@ -1585,9 +1583,7 @@ def test_create_instance_ebs_optimized():
|
|||
instance.ebs_optimized.should.be(False)
|
||||
|
||||
instance = ec2_resource.create_instances(
|
||||
ImageId="ami-12345678",
|
||||
MaxCount=1,
|
||||
MinCount=1,
|
||||
ImageId="ami-12345678", MaxCount=1, MinCount=1,
|
||||
)[0]
|
||||
instance.load()
|
||||
instance.ebs_optimized.should.be(False)
|
||||
|
|
|
|||
|
|
@ -661,11 +661,7 @@ def test_run_instances_should_attach_to_default_subnet():
|
|||
client = boto3.client("ec2", region_name="us-west-1")
|
||||
ec2.create_security_group(GroupName="sg01", Description="Test security group sg01")
|
||||
# run_instances
|
||||
instances = client.run_instances(
|
||||
MinCount=1,
|
||||
MaxCount=1,
|
||||
SecurityGroups=["sg01"],
|
||||
)
|
||||
instances = client.run_instances(MinCount=1, MaxCount=1, SecurityGroups=["sg01"],)
|
||||
# Assert subnet is created appropriately
|
||||
subnets = client.describe_subnets()["Subnets"]
|
||||
default_subnet_id = subnets[0]["SubnetId"]
|
||||
|
|
|
|||
|
|
@ -60,9 +60,7 @@ def test_create_vpn_connection_with_vpn_gateway():
|
|||
|
||||
vpn_gateway = client.create_vpn_gateway(Type="ipsec.1").get("VpnGateway", {})
|
||||
customer_gateway = client.create_customer_gateway(
|
||||
Type="ipsec.1",
|
||||
PublicIp="205.251.242.54",
|
||||
BgpAsn=65534,
|
||||
Type="ipsec.1", PublicIp="205.251.242.54", BgpAsn=65534,
|
||||
).get("CustomerGateway", {})
|
||||
vpn_connection = client.create_vpn_connection(
|
||||
Type="ipsec.1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue