Skip to content

Commit ab93c5d

Browse files
committed
Update test
1 parent d7c7b19 commit ab93c5d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/integration/test_catalog.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -689,19 +689,19 @@ def test_namespace_with_slash(test_catalog: Catalog) -> None:
689689

690690
namespace = ("new/db",)
691691

692-
if test_catalog.namespace_exists(namespace):
692+
if namespace in test_catalog.list_namespaces():
693693
test_catalog.drop_namespace(namespace)
694694

695-
assert not test_catalog.namespace_exists(namespace)
695+
assert namespace not in test_catalog.list_namespaces()
696696

697697
test_catalog.create_namespace(namespace)
698-
assert test_catalog.namespace_exists(namespace)
698+
assert namespace in test_catalog.list_namespaces()
699699

700700
properties = test_catalog.load_namespace_properties(namespace)
701701
assert properties is not None
702702

703703
test_catalog.drop_namespace(namespace)
704-
assert not test_catalog.namespace_exists(namespace)
704+
assert namespace not in test_catalog.list_namespaces()
705705

706706

707707
@pytest.mark.integration

0 commit comments

Comments
 (0)