Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Changed system test to use list_models() correctly #1397

Merged
merged 7 commits into from
May 27, 2022
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