fix missing sure package and region_name (#3031)

This commit is contained in:
Jeremie Tharaud 2020-05-28 15:14:09 +02:00 committed by GitHub
parent 4303123312
commit 162a38bb10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -572,7 +572,7 @@ def test_boto3_create_stack_set_with_yaml():
@mock_s3
def test_create_stack_set_from_s3_url():
s3 = boto3.client("s3")
s3_conn = boto3.resource("s3")
s3_conn = boto3.resource("s3", region_name="us-east-1")
bucket = s3_conn.create_bucket(Bucket="foobar")
key = s3_conn.Object("foobar", "template-key").put(Body=dummy_template_json)
@ -715,7 +715,7 @@ def test_create_stack_with_role_arn():
@mock_s3
def test_create_stack_from_s3_url():
s3 = boto3.client("s3")
s3_conn = boto3.resource("s3")
s3_conn = boto3.resource("s3", region_name="us-east-1")
bucket = s3_conn.create_bucket(Bucket="foobar")
key = s3_conn.Object("foobar", "template-key").put(Body=dummy_template_json)
@ -770,7 +770,7 @@ def test_update_stack_with_previous_value():
@mock_ec2
def test_update_stack_from_s3_url():
s3 = boto3.client("s3")
s3_conn = boto3.resource("s3")
s3_conn = boto3.resource("s3", region_name="us-east-1")
cf_conn = boto3.client("cloudformation", region_name="us-east-1")
cf_conn.create_stack(
@ -799,7 +799,7 @@ def test_update_stack_from_s3_url():
@mock_s3
def test_create_change_set_from_s3_url():
s3 = boto3.client("s3")
s3_conn = boto3.resource("s3")
s3_conn = boto3.resource("s3", region_name="us-east-1")
bucket = s3_conn.create_bucket(Bucket="foobar")
key = s3_conn.Object("foobar", "template-key").put(Body=dummy_template_json)

View File

@ -5,6 +5,7 @@ import os
import boto3
from nose.tools import raises
import botocore
import sure # noqa
from moto.cloudformation.exceptions import ValidationError