Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tests
Signed-off-by: Achal Shah <achals@gmail.com>
  • Loading branch information
achals committed Aug 15, 2022
commit 7b557264ccf6bb14f9362805337cb7747f3e6a90
3 changes: 0 additions & 3 deletions docs/tutorials/structuring-feature-repos.md

This file was deleted.

6 changes: 3 additions & 3 deletions sdk/python/feast/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def plan_command(ctx: click.Context, skip_source_validation: bool):
repo = ctx.obj["CHDIR"]
fs_yaml_file = ctx.obj["FS_YAML_FILE"]
cli_check_repo(repo, fs_yaml_file)
repo_config = load_repo_config( repo, fs_yaml_file)
repo_config = load_repo_config(repo, fs_yaml_file)
try:
plan(repo_config, repo, skip_source_validation)
except FeastProviderLoginError as e:
Expand All @@ -520,7 +520,7 @@ def apply_total_command(ctx: click.Context, skip_source_validation: bool):
fs_yaml_file = ctx.obj["FS_YAML_FILE"]
cli_check_repo(repo, fs_yaml_file)

repo_config = load_repo_config( repo, fs_yaml_file)
repo_config = load_repo_config(repo, fs_yaml_file)
try:
apply_total(repo_config, repo, skip_source_validation)
except FeastProviderLoginError as e:
Expand All @@ -536,7 +536,7 @@ def teardown_command(ctx: click.Context):
repo = ctx.obj["CHDIR"]
fs_yaml_file = ctx.obj["FS_YAML_FILE"]
cli_check_repo(repo, fs_yaml_file)
repo_config = load_repo_config( repo, fs_yaml_file)
repo_config = load_repo_config(repo, fs_yaml_file)

teardown(repo_config, repo)

Expand Down
12 changes: 7 additions & 5 deletions sdk/python/tests/unit/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ def test_3rd_party_registry_store_with_fs_yaml_override() -> None:

fs_yaml_file = "test_fs.yaml"
with setup_third_party_registry_store_repo(
"foo.registry_store.FooRegistryStore",
fs_yaml_file_name=fs_yaml_file
"foo.registry_store.FooRegistryStore", fs_yaml_file_name=fs_yaml_file
) as repo_path:
return_code, output = runner.run_with_output(["--feature-store-yaml", fs_yaml_file, "apply"], cwd=repo_path)
return_code, output = runner.run_with_output(
["--feature-store-yaml", fs_yaml_file, "apply"], cwd=repo_path
)
assertpy.assert_that(return_code).is_equal_to(0)


Expand Down Expand Up @@ -118,8 +119,9 @@ def setup_third_party_provider_repo(provider_name: str):


@contextmanager
def setup_third_party_registry_store_repo(registry_store: str,
fs_yaml_file_name: str = "feature_store.yaml"):
def setup_third_party_registry_store_repo(
registry_store: str, fs_yaml_file_name: str = "feature_store.yaml"
):
with tempfile.TemporaryDirectory() as repo_dir_name:

# Construct an example repo in a temporary dir
Expand Down