Skip to content

Commit 6b2f026

Browse files
authored
fix: Add --chdir to test_workflow.py (feast-dev#4453)
Signed-off-by: Yang, Bo <bo.yang@protonbase.io>
1 parent 55a61e8 commit 6b2f026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/python/feast/templates/postgres/feature_repo/test_workflow.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
def run_demo():
1212
store = FeatureStore(repo_path=os.path.dirname(__file__))
1313
print("\n--- Run feast apply to setup feature store on Postgres ---")
14-
subprocess.run(["feast", "apply"])
14+
subprocess.run(["feast", "--chdir", os.path.dirname(__file__), "apply"])
1515

1616
print("\n--- Historical features for training ---")
1717
fetch_historical_features_entity_df(store, for_batch_scoring=False)
@@ -55,7 +55,7 @@ def run_demo():
5555
fetch_online_features(store, source="push")
5656

5757
print("\n--- Run feast teardown ---")
58-
subprocess.run(["feast", "teardown"])
58+
subprocess.run(["feast", "--chdir", os.path.dirname(__file__), "teardown"])
5959

6060

6161
def fetch_historical_features_entity_df(store: FeatureStore, for_batch_scoring: bool):

0 commit comments

Comments
 (0)