Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alibi Zhenis <alibizhenis4@gmail.com>
  • Loading branch information
AlibiZhenis committed May 19, 2023
1 parent 86e7c51 commit 3a7d72b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/ml_commons/test_ml_commons_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_DEPRECATED_integration_pretrained_model_upload_unload_delete():
try:
ml_client.unload_model(model_id)
ml_model_status = ml_client.get_model_info(model_id)
assert ml_model_status.get("model_state") == "UNDEPLOYED"
assert ml_model_status.get("model_state") != "UNDEPLOY_FAILED"
except: # noqa: E722
raised = True
assert raised == False, "Raised Exception in pretrained model undeployment"
Expand Down Expand Up @@ -150,7 +150,7 @@ def test_integration_pretrained_model_register_undeploy_delete():
try:
ml_client.undeploy_model(model_id)
ml_model_status = ml_client.get_model_info(model_id)
assert ml_model_status.get("model_state") == "UNDEPLOYED"
assert ml_model_status.get("model_state") != "UNDEPLOY_FAILED"
except: # noqa: E722
raised = True
assert raised == False, "Raised Exception in pretrained model undeployment"
Expand Down Expand Up @@ -253,7 +253,7 @@ def test_DEPRECATED_integration_model_train_upload_full_cycle():
try:
ml_client.unload_model(model_id)
ml_model_status = ml_client.get_model_info(model_id)
assert ml_model_status.get("model_state") == "UNDEPLOYED"
assert ml_model_status.get("model_state") != "UNDEPLOY_FAILED"
except: # noqa: E722
raised = True
assert raised == False, "Raised Exception in model undeployment"
Expand Down Expand Up @@ -369,7 +369,7 @@ def test_integration_model_train_register_full_cycle():
try:
ml_client.undeploy_model(model_id)
ml_model_status = ml_client.get_model_info(model_id)
assert ml_model_status.get("model_state") == "UNDEPLOYED"
assert ml_model_status.get("model_state") != "UNDEPLOY_FAILED"
except: # noqa: E722
raised = True
assert raised == False, "Raised Exception in model undeployment"
Expand Down

0 comments on commit 3a7d72b

Please sign in to comment.