@@ -312,7 +312,7 @@ def test_rename_table(catalog: InMemoryCatalog) -> None:
312312 assert table ._identifier == Catalog .identifier_to_tuple (new_table )
313313
314314 # And
315- assert ("new" , "namespace" ) in catalog .list_namespaces ()
315+ assert ("new" ,) in catalog .list_namespaces ()
316316
317317 # And
318318 with pytest .raises (NoSuchTableError , match = NO_SUCH_TABLE_ERROR ):
@@ -336,7 +336,7 @@ def test_rename_table_from_self_identifier(catalog: InMemoryCatalog) -> None:
336336 assert new_table ._identifier == Catalog .identifier_to_tuple (new_table_name )
337337
338338 # And
339- assert ("new" , "namespace" ) in catalog .list_namespaces ()
339+ assert ("new" ,) in catalog .list_namespaces ()
340340
341341 # And
342342 with pytest .raises (NoSuchTableError , match = NO_SUCH_TABLE_ERROR ):
@@ -350,7 +350,7 @@ def test_create_namespace(catalog: InMemoryCatalog) -> None:
350350 catalog .create_namespace (TEST_TABLE_NAMESPACE , TEST_TABLE_PROPERTIES )
351351
352352 # Then
353- assert TEST_TABLE_NAMESPACE in catalog .list_namespaces ()
353+ assert TEST_TABLE_NAMESPACE [: 1 ] in catalog .list_namespaces ()
354354 assert TEST_TABLE_PROPERTIES == catalog .load_namespace_properties (TEST_TABLE_NAMESPACE )
355355
356356
@@ -373,7 +373,7 @@ def test_list_namespaces(catalog: InMemoryCatalog) -> None:
373373 # When
374374 namespaces = catalog .list_namespaces ()
375375 # Then
376- assert TEST_TABLE_NAMESPACE in namespaces
376+ assert TEST_TABLE_NAMESPACE [: 1 ] in namespaces
377377
378378
379379def test_drop_namespace (catalog : InMemoryCatalog ) -> None :
@@ -382,7 +382,7 @@ def test_drop_namespace(catalog: InMemoryCatalog) -> None:
382382 # When
383383 catalog .drop_namespace (TEST_TABLE_NAMESPACE )
384384 # Then
385- assert TEST_TABLE_NAMESPACE not in catalog .list_namespaces ()
385+ assert TEST_TABLE_NAMESPACE [: 1 ] not in catalog .list_namespaces ()
386386
387387
388388def test_drop_namespace_raises_error_when_namespace_does_not_exist (catalog : InMemoryCatalog ) -> None :
@@ -431,7 +431,7 @@ def test_update_namespace_metadata(catalog: InMemoryCatalog) -> None:
431431 summary = catalog .update_namespace_properties (TEST_TABLE_NAMESPACE , updates = new_metadata )
432432
433433 # Then
434- assert TEST_TABLE_NAMESPACE in catalog .list_namespaces ()
434+ assert TEST_TABLE_NAMESPACE [: 1 ] in catalog .list_namespaces ()
435435 assert new_metadata .items () <= catalog .load_namespace_properties (TEST_TABLE_NAMESPACE ).items ()
436436 assert summary .removed == []
437437 assert sorted (summary .updated ) == ["key3" , "key4" ]
@@ -448,7 +448,7 @@ def test_update_namespace_metadata_removals(catalog: InMemoryCatalog) -> None:
448448 summary = catalog .update_namespace_properties (TEST_TABLE_NAMESPACE , remove_metadata , new_metadata )
449449
450450 # Then
451- assert TEST_TABLE_NAMESPACE in catalog .list_namespaces ()
451+ assert TEST_TABLE_NAMESPACE [: 1 ] in catalog .list_namespaces ()
452452 assert new_metadata .items () <= catalog .load_namespace_properties (TEST_TABLE_NAMESPACE ).items ()
453453 assert remove_metadata .isdisjoint (catalog .load_namespace_properties (TEST_TABLE_NAMESPACE ).keys ())
454454 assert summary .removed == ["key1" ]
0 commit comments