Skip to content
Merged
Changes from all commits
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
14 changes: 12 additions & 2 deletions sdk/python/tests/integration/registration/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ def test_universal_cli(test_repo_config) -> None:
fs = FeatureStore(repo_path=str(repo_path))
registry_dict = fs.registry.to_dict(project=project)

# Save only the specs, not the metadata.
registry_specs = {
key: [fco["spec"] for fco in value]
for key, value in registry_dict.items()
}

# entity & feature view list commands should succeed
result = runner.run(["entities", "list"], cwd=repo_path)
assertpy.assert_that(result.returncode).is_equal_to(0)
Expand Down Expand Up @@ -83,8 +89,12 @@ def test_universal_cli(test_repo_config) -> None:
)

# Confirm that registry contents have not changed.
assertpy.assert_that(registry_dict).is_equal_to(
fs.registry.to_dict(project=project)
registry_dict = fs.registry.to_dict(project=project)
assertpy.assert_that(registry_specs).is_equal_to(
{
key: [fco["spec"] for fco in value]
for key, value in registry_dict.items()
}
)

result = runner.run(["teardown"], cwd=repo_path)
Expand Down