From 38c1ae6bc00079b0c69a8b8c6a050077bfbbcda7 Mon Sep 17 00:00:00 2001 From: jbencook Date: Tue, 15 Dec 2015 19:18:30 +0000 Subject: [PATCH] specify region --- tests/test_autoscaling/test_autoscaling_boto3.py | 4 ++-- tests/test_autoscaling/test_launch_configurations_boto3.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_autoscaling/test_autoscaling_boto3.py b/tests/test_autoscaling/test_autoscaling_boto3.py index c114a9285..3580da199 100644 --- a/tests/test_autoscaling/test_autoscaling_boto3.py +++ b/tests/test_autoscaling/test_autoscaling_boto3.py @@ -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' ) diff --git a/tests/test_autoscaling/test_launch_configurations_boto3.py b/tests/test_autoscaling/test_launch_configurations_boto3.py index b16e5324f..144f87938 100644 --- a/tests/test_autoscaling/test_launch_configurations_boto3.py +++ b/tests/test_autoscaling/test_launch_configurations_boto3.py @@ -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',