@@ -43,7 +43,7 @@ def test_invalid_definition():
43
43
44
44
result = runner .invoke (cli , ['print' , 'myapp.yaml' , '--region=aa-fakeregion-1' , '123' ], catch_exceptions = False )
45
45
46
- assert 'error: invalid value for "definition" ' in result .output .lower ()
46
+ assert 'error: invalid value for' in result .output .lower ()
47
47
48
48
49
49
def test_file_not_found ():
@@ -193,8 +193,7 @@ def test_region_validation(monkeypatch):
193
193
result = runner .invoke (cli , ['print' , 'myapp.yaml' , '--region=invalid-region' , '123' ],
194
194
catch_exceptions = False )
195
195
196
- assert ('Error: Invalid value for "--region": \' invalid-region\' . '
197
- 'Region must be one of the following AWS regions:' in result .output )
196
+ assert ('Region must be one of the following AWS regions:' in result .output )
198
197
199
198
200
199
def test_print_replace_mustache (monkeypatch ):
@@ -1800,7 +1799,7 @@ def test_scale_with_overwriting_zero_minsize(monkeypatch):
1800
1799
boto3 .describe_auto_scaling_groups .return_value = {'AutoScalingGroups' : [group ]}
1801
1800
monkeypatch .setattr ('boto3.client' , MagicMock (return_value = boto3 ))
1802
1801
runner = CliRunner ()
1803
- result = runner .invoke (cli , ['scale' , 'myapp' , '1' , '2' , '--region=aa-fakeregion-1' , '--min_size ' , '1' ],
1802
+ result = runner .invoke (cli , ['scale' , 'myapp' , '1' , '2' , '--region=aa-fakeregion-1' , '--min-size ' , '1' ],
1804
1803
catch_exceptions = False )
1805
1804
assert 'Scaling myasg from 0 to 2 instances' in result .output
1806
1805
@@ -1816,7 +1815,7 @@ def test_scale_desired_capacity_smaller_than_min_size(monkeypatch):
1816
1815
boto3 .describe_auto_scaling_groups .return_value = {'AutoScalingGroups' : [group ]}
1817
1816
monkeypatch .setattr ('boto3.client' , MagicMock (return_value = boto3 ))
1818
1817
runner = CliRunner ()
1819
- result = runner .invoke (cli , ['scale' , 'myapp' , '1' , '2' , '--region=aa-fakeregion-1' , '--min_size ' , '4' ],
1818
+ result = runner .invoke (cli , ['scale' , 'myapp' , '1' , '2' , '--region=aa-fakeregion-1' , '--min-size ' , '4' ],
1820
1819
catch_exceptions = False )
1821
1820
assert 'Desired capacity must be bigger than specified min_size value' in result .output
1822
1821
0 commit comments