MCPcopy
hub / github.com/feast-dev/feast / default_store

Function default_store

sdk/python/tests/utils/auth_permissions_util.py:33–54  ·  view source on GitHub ↗
(
    temp_dir,
    auth_config: str,
    permissions: list[Permission],
)

Source from the content-addressed store, hash-verified

31
32
33def default_store(
34 temp_dir,
35 auth_config: str,
36 permissions: list[Permission],
37):
38 runner = CliRunner()
39 result = runner.run(["init", PROJECT_NAME], cwd=temp_dir)
40 repo_path = os.path.join(temp_dir, PROJECT_NAME, "feature_repo")
41 assert result.returncode == 0
42
43 include_auth_config(
44 file_path=f"{repo_path}/feature_store.yaml", auth_config=auth_config
45 )
46
47 result = runner.run(["--chdir", repo_path, "apply"], cwd=temp_dir)
48 assert result.returncode == 0
49
50 fs = FeatureStore(repo_path=repo_path)
51
52 fs.apply(permissions) # type: ignore
53
54 return fs
55
56
57def start_feature_server(

Callers 2

feature_storeFunction · 0.90

Calls 6

runMethod · 0.95
applyMethod · 0.95
CliRunnerClass · 0.90
FeatureStoreClass · 0.90
include_auth_configFunction · 0.85
joinMethod · 0.45

Tested by 2

feature_storeFunction · 0.72