test: skip async namespace branch test without lance

This commit is contained in:
Brendan Clement
2026-06-03 11:55:01 -07:00
parent 59824ab438
commit 09518a3c1b

View File

@@ -984,6 +984,7 @@ def test_open_table_with_branch(tmp_path):
@pytest.mark.asyncio
async def test_async_namespace_open_table_with_branch(tmp_path):
pytest.importorskip("lance") # "dir" impl is lance.namespace.DirectoryNamespace
db = lancedb.connect_namespace_async("dir", {"root": str(tmp_path)})
await db.create_namespace(["ns1"])
table = await db.create_table("t", [{"id": 1}], namespace_path=["ns1"])