Visitar URL original
fix: Add project filter to apply_data_source and delete_data_source (closes #6206) by mailtoboggavarapu-coder · Pull Request #6322 · feast-dev/feast · GitHub
Skip to content
Merged
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
fix(tests): scope cross-project isolation tests to local_registry only
Changed parametrize decorators from all_fixtures to [lazy_fixture("local_registry")] for
both new test functions to avoid polluting the session-scoped sqlite_registry fixture.

Signed-off-by: Venkateswarlu Boggavarapu <mailtoboggavarapu@gmail.com>
  • Loading branch information
mailtoboggavarapu-coder authored and ntkathole committed May 1, 2026
commit 9817a6ed5c7e71702e6c1e6843d6cfe05072d88e
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ def test_apply_data_source_with_timestamps(test_registry):
@pytest.mark.integration
@pytest.mark.parametrize(
"test_registry",
all_fixtures,
[lazy_fixture("local_registry")],
)
def test_apply_data_source_cross_project_isolation(test_registry):
"""Test that apply_data_source uses project-scoped filtering.
Expand Down Expand Up @@ -938,7 +938,7 @@ def test_apply_data_source_cross_project_isolation(test_registry):
assert len(sources_a) == 1
assert len(sources_b) == 1

# Paths must be project-specific — not overwritten cross-project
# Paths must be project-specific — not overwritten cross-project
assert sources_a[0].path == "file://feast/project_a.parquet"
assert sources_b[0].path == "file://feast/project_b.parquet"

Expand All @@ -963,7 +963,7 @@ def test_apply_data_source_cross_project_isolation(test_registry):
@pytest.mark.integration
@pytest.mark.parametrize(
"test_registry",
all_fixtures,
[lazy_fixture("local_registry")],
)
def test_delete_data_source_project_scoped(test_registry):
"""Test that delete_data_source only removes the source from the given project.
Expand Down
Loading