Skip to content

Commit b53fed3

Browse files
committed
more test fixing
1 parent 3c68184 commit b53fed3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/integration/test_catalog.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def test_concurrent_create_transaction(test_catalog: Catalog, test_schema: Schem
409409
@pytest.mark.parametrize("test_catalog", CATALOGS)
410410
def test_create_namespace(test_catalog: Catalog, database_name: str) -> None:
411411
test_catalog.create_namespace(database_name)
412-
assert (database_name,) in test_catalog.list_namespaces()
412+
assert (database_name,) in list(test_catalog.list_namespaces())
413413

414414

415415
@pytest.mark.integration
@@ -425,7 +425,7 @@ def test_create_duplicate_namespace(test_catalog: Catalog, database_name: str) -
425425
def test_create_namepsace_if_not_exists(test_catalog: Catalog, database_name: str) -> None:
426426
test_catalog.create_namespace(database_name)
427427
test_catalog.create_namespace_if_not_exists(database_name)
428-
assert (database_name,) in test_catalog.list_namespaces()
428+
assert (database_name,) in list(test_catalog.list_namespaces())
429429

430430

431431
@pytest.mark.integration
@@ -435,7 +435,7 @@ def test_create_namespace_with_comment(test_catalog: Catalog, database_name: str
435435
"comment": "this is a test description",
436436
}
437437
test_catalog.create_namespace(namespace=database_name, properties=test_properties)
438-
loaded_database_list = test_catalog.list_namespaces()
438+
loaded_database_list = list(test_catalog.list_namespaces())
439439
assert (database_name,) in loaded_database_list
440440
properties = test_catalog.load_namespace_properties(database_name)
441441
assert properties["comment"] == "this is a test description"
@@ -446,7 +446,7 @@ def test_create_namespace_with_comment(test_catalog: Catalog, database_name: str
446446
def test_list_namespaces(test_catalog: Catalog, database_list: list[str]) -> None:
447447
for database_name in database_list:
448448
test_catalog.create_namespace(database_name)
449-
db_list = test_catalog.list_namespaces()
449+
db_list = list(test_catalog.list_namespaces())
450450
for database_name in database_list:
451451
assert (database_name,) in db_list
452452
assert len(list(test_catalog.list_namespaces(list(database_list)[0]))) == 0
@@ -456,13 +456,13 @@ def test_list_namespaces(test_catalog: Catalog, database_list: list[str]) -> Non
456456
@pytest.mark.parametrize("test_catalog", CATALOGS)
457457
def test_drop_namespace(test_catalog: Catalog, table_schema_nested: Schema, table_name: str, database_name: str) -> None:
458458
test_catalog.create_namespace(database_name)
459-
assert (database_name,) in test_catalog.list_namespaces()
459+
assert (database_name,) in list(test_catalog.list_namespaces())
460460
test_catalog.create_table((database_name, table_name), table_schema_nested)
461461
with pytest.raises(NamespaceNotEmptyError):
462462
test_catalog.drop_namespace(database_name)
463463
test_catalog.drop_table((database_name, table_name))
464464
test_catalog.drop_namespace(database_name)
465-
assert (database_name,) not in test_catalog.list_namespaces()
465+
assert (database_name,) not in list(test_catalog.list_namespaces())
466466

467467

468468
@pytest.mark.integration

0 commit comments

Comments
 (0)