From 5b397e410b7647680c053d655aeb5ab9893e905d Mon Sep 17 00:00:00 2001 From: Jack Ye Date: Thu, 18 Sep 2025 13:29:47 -0700 Subject: [PATCH] chore: fix out of date tests with new namespace validation (#2663) Failure: https://github.com/lancedb/lancedb/actions/runs/17820044478/job/50660516344 --- python/python/tests/test_db.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/python/python/tests/test_db.py b/python/python/tests/test_db.py index f4381e94..f6c6fb97 100644 --- a/python/python/tests/test_db.py +++ b/python/python/tests/test_db.py @@ -747,15 +747,16 @@ def test_local_namespace_operations(tmp_path): # Create a local database connection db = lancedb.connect(tmp_path) - # Test list_namespaces returns empty list + # Test list_namespaces returns empty list for root namespace namespaces = list(db.list_namespaces()) assert namespaces == [] - # Test list_namespaces with parameters still returns empty list - namespaces_with_params = list( - db.list_namespaces(namespace=["test"], page_token="token", limit=5) - ) - assert namespaces_with_params == [] + # Test list_namespaces with non-empty namespace raises NotImplementedError + with pytest.raises( + NotImplementedError, + match="Namespace operations are not supported for listing database", + ): + list(db.list_namespaces(namespace=["test"])) def test_local_create_namespace_not_supported(tmp_path):