@@ -368,7 +368,7 @@ def mock_endpoint_explain(mock_endpoint):
368
368
369
369
"""
370
370
----------------------------------------------------------------------------
371
- FeatureStore Fixtures
371
+ Feature Store Fixtures
372
372
----------------------------------------------------------------------------
373
373
"""
374
374
@@ -398,6 +398,13 @@ def mock_get_featurestore(mock_featurestore):
398
398
yield mock_get_featurestore
399
399
400
400
401
+ @pytest .fixture
402
+ def mock_get_entity_type (mock_entity_type ):
403
+ with patch .object (aiplatform .featurestore , "EntityType" ) as mock_get_entity_type :
404
+ mock_get_entity_type .return_value = mock_entity_type
405
+ yield mock_get_entity_type
406
+
407
+
401
408
@pytest .fixture
402
409
def mock_create_featurestore (mock_featurestore ):
403
410
with patch .object (
@@ -418,9 +425,7 @@ def mock_create_entity_type(mock_entity_type):
418
425
419
426
@pytest .fixture
420
427
def mock_create_feature (mock_feature ):
421
- with patch .object (
422
- aiplatform .featurestore .Feature , "create"
423
- ) as mock_create_feature :
428
+ with patch .object (aiplatform .featurestore .Feature , "create" ) as mock_create_feature :
424
429
mock_create_feature .return_value = mock_feature
425
430
yield mock_create_feature
426
431
@@ -429,3 +434,31 @@ def mock_create_feature(mock_feature):
429
434
def mock_delete_featurestore (mock_featurestore ):
430
435
with patch .object (mock_featurestore , "delete" ) as mock_delete_featurestore :
431
436
yield mock_delete_featurestore
437
+
438
+
439
+ @pytest .fixture
440
+ def mock_batch_serve_to_bq (mock_featurestore ):
441
+ with patch .object (mock_featurestore , "batch_serve_to_bq" ) as mock_batch_serve_to_bq :
442
+ yield mock_batch_serve_to_bq
443
+
444
+
445
+ @pytest .fixture
446
+ def mock_batch_create_features (mock_entity_type ):
447
+ with patch .object (
448
+ mock_entity_type , "batch_create_features"
449
+ ) as mock_batch_create_features :
450
+ yield mock_batch_create_features
451
+
452
+
453
+ @pytest .fixture
454
+ def mock_read_feature_values (mock_entity_type ):
455
+ with patch .object (mock_entity_type , "read" ) as mock_read_feature_values :
456
+ yield mock_read_feature_values
457
+
458
+
459
+ @pytest .fixture
460
+ def mock_import_feature_values (mock_entity_type ):
461
+ with patch .object (
462
+ mock_entity_type , "ingest_from_gcs"
463
+ ) as mock_import_feature_values :
464
+ yield mock_import_feature_values
0 commit comments