File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments