-
Notifications
You must be signed in to change notification settings - Fork 420
fix: loosen assertions for system test featurestore #1040
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: loosen assertions for system test featurestore #1040
Conversation
|
|
||
| list_featurestores = aiplatform.Featurestore.list() | ||
| assert (len(list_featurestores) - base_list_featurestores) == 1 | ||
| assert len(list_featurestores) >= 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my system test, I actually do:
assert get_index.resource_name in [
index.resource_name for index in list_indexes
]
Just another option that doesn't depend on the absolute number of items in the list.
| featurestore_name=featurestore_name | ||
| ) | ||
| assert len(list_entity_types) == 2 | ||
| assert len(list_entity_types) >= 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
|
|
||
| list_user_features = user_entity_type.list_features() | ||
| assert len(list_user_features) == 3 | ||
| assert len(list_user_features) >= 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
ivanmkc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fix: #1030