Skip to content

Commit 8dfbc68

Browse files
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>
1 parent 5faba1c commit 8dfbc68

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sdk/python/tests/integration/registration/test_universal_registry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ def test_apply_data_source_with_timestamps(test_registry):
902902
@pytest.mark.integration
903903
@pytest.mark.parametrize(
904904
"test_registry",
905-
all_fixtures,
905+
[lazy_fixture("local_registry")],
906906
)
907907
def test_apply_data_source_cross_project_isolation(test_registry):
908908
"""Test that apply_data_source uses project-scoped filtering.
@@ -938,7 +938,7 @@ def test_apply_data_source_cross_project_isolation(test_registry):
938938
assert len(sources_a) == 1
939939
assert len(sources_b) == 1
940940

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

@@ -963,7 +963,7 @@ def test_apply_data_source_cross_project_isolation(test_registry):
963963
@pytest.mark.integration
964964
@pytest.mark.parametrize(
965965
"test_registry",
966-
all_fixtures,
966+
[lazy_fixture("local_registry")],
967967
)
968968
def test_delete_data_source_project_scoped(test_registry):
969969
"""Test that delete_data_source only removes the source from the given project.

0 commit comments

Comments
 (0)