Skip to content

Commit b19fbf0

Browse files
docs(samples): add samples to create/delete featurestore (googleapis#980)
* feat: SDK feature store samples (create/delete fs) * feat: adding to conftest.py * docs(samples): fixed testing * docs(samples): fixed testing * docs(samples): fixed testing * docs(samples) added changes * docs(samples): style issues * Update samples/model-builder/create_featurestore_sample_test.py Co-authored-by: Morgan Du <morgandu@google.com> * Update samples/model-builder/test_constants.py Co-authored-by: Morgan Du <morgandu@google.com> * Update samples/model-builder/create_featurestore_sample_test.py Co-authored-by: Morgan Du <morgandu@google.com> Co-authored-by: Morgan Du <morgandu@google.com>
1 parent 41d8fdd commit b19fbf0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

samples/model-builder/conftest.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,12 @@ def mock_get_featurestore(mock_featurestore):
387387

388388

389389
@pytest.fixture
390-
def mock_create_featurestore():
391-
with patch.object(aiplatform.Featurestore, "create") as mock:
392-
yield mock
390+
def mock_create_featurestore(mock_featurestore):
391+
with patch.object(
392+
aiplatform.featurestore.Featurestore, "create"
393+
) as mock_create_featurestore:
394+
mock_create_featurestore.return_value = mock_featurestore
395+
yield mock_create_featurestore
393396

394397

395398
@pytest.fixture

0 commit comments

Comments
 (0)