Skip to content

Commit 6b4ef79

Browse files
committed
lintfix
1 parent fb381a1 commit 6b4ef79

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

tests/test_api.py

+8
Original file line numberDiff line numberDiff 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

506514
class SPCSConnectServerTestCase(TestCase):
507515
def test_init(self):

tests/test_snowflake.py

+1-1
Original file line numberDiff line numberDiff 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="",

0 commit comments

Comments
 (0)