specify region
This commit is contained in:
parent
5aca483849
commit
38c1ae6bc0
@ -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'
|
||||
)
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user