File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 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):
502502 task_logs_response .response_body = "here's why it failed"
503503 self .cloud_client .get_task_logs .return_value = task_logs_response
504504
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+
505513
506514class SPCSConnectServerTestCase (TestCase ):
507515 def test_init (self ):
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ def mock_snow(*args):
254254 elif conn_name == "prod" :
255255 return MockSnowGenerateJWT ()
256256 else :
257- raise subprocess . CalledProcessError (
257+ raise CalledProcessError (
258258 returncode = 1 ,
259259 cmd = ["snow" ] + list (args ),
260260 output = "" ,
You can’t perform that action at this time.
0 commit comments