Skip to content

Commit

Permalink
fix: Changed system test to use list_models() correctly (#1397)
Browse files Browse the repository at this point in the history
* chore: release 1.13.1

Release-As: 1.13.1

* Changed test to use list_models() correctly

* feat: Changed system test to use list_models() correctly

Co-authored-by: Sam Goodman <[email protected]>
  • Loading branch information
samgoodman and Sam Goodman authored May 27, 2022
1 parent 8560fa8 commit a3da19a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/system/aiplatform/test_model_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def test_upload_and_deploy_xgboost_model(self, shared_state):
assert model.description == "new_description"
assert model.labels == {"my_label": "updated"}

assert len(endpoint.list_models) == 1
assert len(endpoint.list_models()) == 1
endpoint.deploy(model, traffic_percentage=100)
assert len(endpoint.list_models) == 2
assert len(endpoint.list_models()) == 2
traffic_split = {
deployed_model.id: 50 for deployed_model in endpoint.list_models()
}
Expand Down

0 comments on commit a3da19a

Please sign in to comment.