specify region

This commit is contained in:
jbencook 2015-12-15 19:18:30 +00:00
parent 5aca483849
commit 38c1ae6bc0
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ from moto import mock_autoscaling
@mock_autoscaling
def test_create_autoscaling_group():
client = boto3.client('autoscaling')
client = boto3.client('autoscaling', region_name='us-east-1')
_ = client.create_launch_configuration(
LaunchConfigurationName='test_launch_configuration'
)
@ -23,7 +23,7 @@ def test_create_autoscaling_group():
@mock_autoscaling
def test_describe_autoscaling_groups():
client = boto3.client('autoscaling')
client = boto3.client('autoscaling', region_name='us-east-1')
_ = client.create_launch_configuration(
LaunchConfigurationName='test_launch_configuration'
)

View File

@ -8,7 +8,7 @@ from moto import mock_autoscaling
@mock_autoscaling
def test_create_launch_configuration():
client = boto3.client('autoscaling')
client = boto3.client('autoscaling', region_name='us-east-1')
response = client.create_launch_configuration(
LaunchConfigurationName='tester',
ImageId='ami-abcd1234',