@@ -43,7 +43,7 @@ def test_invalid_definition():
4343
4444 result = runner .invoke (cli , ['print' , 'myapp.yaml' , '--region=aa-fakeregion-1' , '123' ], catch_exceptions = False )
4545
46- assert 'error: invalid value for "definition" ' in result .output .lower ()
46+ assert 'error: invalid value for' in result .output .lower ()
4747
4848
4949def test_file_not_found ():
@@ -193,8 +193,7 @@ def test_region_validation(monkeypatch):
193193 result = runner .invoke (cli , ['print' , 'myapp.yaml' , '--region=invalid-region' , '123' ],
194194 catch_exceptions = False )
195195
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 )
198197
199198
200199def test_print_replace_mustache (monkeypatch ):
@@ -1800,7 +1799,7 @@ def test_scale_with_overwriting_zero_minsize(monkeypatch):
18001799 boto3 .describe_auto_scaling_groups .return_value = {'AutoScalingGroups' : [group ]}
18011800 monkeypatch .setattr ('boto3.client' , MagicMock (return_value = boto3 ))
18021801 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' ],
18041803 catch_exceptions = False )
18051804 assert 'Scaling myasg from 0 to 2 instances' in result .output
18061805
@@ -1816,7 +1815,7 @@ def test_scale_desired_capacity_smaller_than_min_size(monkeypatch):
18161815 boto3 .describe_auto_scaling_groups .return_value = {'AutoScalingGroups' : [group ]}
18171816 monkeypatch .setattr ('boto3.client' , MagicMock (return_value = boto3 ))
18181817 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' ],
18201819 catch_exceptions = False )
18211820 assert 'Desired capacity must be bigger than specified min_size value' in result .output
18221821
0 commit comments