Skip to content

Commit

Permalink
Use tempfile for online store path
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Klegar <jacob@tecton.ai>
  • Loading branch information
jklegar committed Mar 30, 2021
1 parent b992c9c commit 3c6f2e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sdk/python/tests/test_feature_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@
class TestFeatureStore:
@pytest.fixture
def feature_store_with_local_registry(self):
fd, path = mkstemp()
fd, registry_path = mkstemp()
fd, online_store_path = mkstemp()
return FeatureStore(
config=RepoConfig(
metadata_store=path,
metadata_store=registry_path,
project="default",
provider="local",
online_store=OnlineStoreConfig(
local=LocalOnlineStoreConfig(path="online_store.db")
local=LocalOnlineStoreConfig(path=online_store_path)
),
)
)
Expand Down

0 comments on commit 3c6f2e8

Please sign in to comment.