Skip to content

Commit c23a8bd

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
chore: Add test for model_version_id when using predict(..., use_raw_predict=True)
PiperOrigin-RevId: 496524822
1 parent b0cbba1 commit c23a8bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/system/aiplatform/test_model_interactions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ def test_prediction(self):
5252
prediction_with_raw_predict.model_resource_name
5353
== prediction_response.model_resource_name
5454
)
55+
assert (
56+
prediction_with_raw_predict.model_version_id
57+
== prediction_response.model_version_id
58+
)
5559

5660
# test raw_predict
5761
raw_prediction_response = self.endpoint.raw_predict(

0 commit comments

Comments
 (0)