File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -502,6 +502,14 @@ def test_do_deploy_failure(self):
502
502
task_logs_response .response_body = "here's why it failed"
503
503
self .cloud_client .get_task_logs .return_value = task_logs_response
504
504
505
+ with pytest .raises (DeploymentFailedException ):
506
+ self .cloud_service .do_deploy (bundle_id , app_id )
507
+
508
+ self .cloud_client .set_bundle_status .assert_called_with (bundle_id , "ready" )
509
+ self .cloud_client .deploy_application .assert_called_with (bundle_id , app_id )
510
+ self .cloud_client .wait_until_task_is_successful .assert_called_with (task_id )
511
+ self .cloud_client .get_task_logs .assert_called_with (task_id )
512
+
505
513
506
514
class SPCSConnectServerTestCase (TestCase ):
507
515
def test_init (self ):
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ def mock_snow(*args):
254
254
elif conn_name == "prod" :
255
255
return MockSnowGenerateJWT ()
256
256
else :
257
- raise subprocess . CalledProcessError (
257
+ raise CalledProcessError (
258
258
returncode = 1 ,
259
259
cmd = ["snow" ] + list (args ),
260
260
output = "" ,
You can’t perform that action at this time.
0 commit comments