Skip to content

Commit e22c58e

Browse files
committed
Fixes unit tests.
1 parent e028cbb commit e22c58e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/unitary/default_setup/model/test_oci_datascience_model.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888

8989
class TestOCIDataScienceModel:
9090
def setup_class(cls):
91-
9291
# Mock delete model response
9392
cls.mock_delete_model_response = Response(
9493
data=None, status=None, headers=None, request=None
@@ -229,7 +228,9 @@ def test_delete_success(self, mock_client):
229228
mock_model_deployment.return_value = [
230229
MagicMock(lifecycle_state="ACTIVE", identifier="md_id")
231230
]
232-
with patch("ads.model.deployment.ModelDeployment.from_id") as mock_from_id:
231+
with patch(
232+
"ads.model.deployment.ModelDeployment.from_id"
233+
) as mock_from_id:
233234
with patch.object(OCIDataScienceModel, "sync") as mock_sync:
234235
self.mock_model.delete(delete_associated_model_deployment=True)
235236
mock_from_id.assert_called_with("md_id")
@@ -445,7 +446,7 @@ def test_export_model_artifact(
445446
)
446447
mock_wait_for_work_request.assert_called_with(
447448
work_request_id="work_request_id",
448-
num_steps=3,
449+
num_steps=2,
449450
)
450451

451452
@patch.object(TqdmProgressBar, "update")

0 commit comments

Comments
 (0)