@@ -74,7 +74,7 @@ def test_create_table_with_database_location(
7474 test_catalog = DynamoDbCatalog (catalog_name , ** {"s3.endpoint" : moto_endpoint_url })
7575 test_catalog .create_namespace (namespace = database_name , properties = {"location" : f"s3://{ BUCKET_NAME } /{ database_name } .db" })
7676 table = test_catalog .create_table (identifier , table_schema_nested )
77- assert table .identifier == ( catalog_name ,) + identifier
77+ assert table .identifier == identifier
7878 assert TABLE_METADATA_LOCATION_REGEX .match (table .metadata_location )
7979
8080
@@ -91,7 +91,7 @@ def test_create_table_with_pyarrow_schema(
9191 test_catalog = DynamoDbCatalog (catalog_name , ** {"s3.endpoint" : moto_endpoint_url })
9292 test_catalog .create_namespace (namespace = database_name , properties = {"location" : f"s3://{ BUCKET_NAME } /{ database_name } .db" })
9393 table = test_catalog .create_table (identifier , pyarrow_schema_simple_without_ids )
94- assert table .identifier == ( catalog_name ,) + identifier
94+ assert table .identifier == identifier
9595 assert TABLE_METADATA_LOCATION_REGEX .match (table .metadata_location )
9696
9797
@@ -104,7 +104,7 @@ def test_create_table_with_default_warehouse(
104104 test_catalog = DynamoDbCatalog (catalog_name , ** {"s3.endpoint" : moto_endpoint_url , "warehouse" : f"s3://{ BUCKET_NAME } " })
105105 test_catalog .create_namespace (namespace = database_name )
106106 table = test_catalog .create_table (identifier , table_schema_nested )
107- assert table .identifier == ( catalog_name ,) + identifier
107+ assert table .identifier == identifier
108108 assert TABLE_METADATA_LOCATION_REGEX .match (table .metadata_location )
109109
110110
@@ -119,7 +119,7 @@ def test_create_table_with_given_location(
119119 table = test_catalog .create_table (
120120 identifier = identifier , schema = table_schema_nested , location = f"s3://{ BUCKET_NAME } /{ database_name } .db/{ table_name } "
121121 )
122- assert table .identifier == ( catalog_name ,) + identifier
122+ assert table .identifier == identifier
123123 assert TABLE_METADATA_LOCATION_REGEX .match (table .metadata_location )
124124
125125
@@ -133,7 +133,7 @@ def test_create_table_removes_trailing_slash_in_location(
133133 test_catalog .create_namespace (namespace = database_name )
134134 location = f"s3://{ BUCKET_NAME } /{ database_name } .db/{ table_name } "
135135 table = test_catalog .create_table (identifier = identifier , schema = table_schema_nested , location = f"{ location } /" )
136- assert table .identifier == ( catalog_name ,) + identifier
136+ assert table .identifier == identifier
137137 assert table .location () == location
138138 assert TABLE_METADATA_LOCATION_REGEX .match (table .metadata_location )
139139
@@ -158,7 +158,7 @@ def test_create_table_with_strips(
158158 test_catalog = DynamoDbCatalog (catalog_name , ** {"s3.endpoint" : moto_endpoint_url })
159159 test_catalog .create_namespace (namespace = database_name , properties = {"location" : f"s3://{ BUCKET_NAME } /{ database_name } .db/" })
160160 table = test_catalog .create_table (identifier , table_schema_nested )
161- assert table .identifier == ( catalog_name ,) + identifier
161+ assert table .identifier == identifier
162162 assert TABLE_METADATA_LOCATION_REGEX .match (table .metadata_location )
163163
164164
@@ -171,7 +171,7 @@ def test_create_table_with_strips_bucket_root(
171171 test_catalog = DynamoDbCatalog (catalog_name , ** {"s3.endpoint" : moto_endpoint_url , "warehouse" : f"s3://{ BUCKET_NAME } /" })
172172 test_catalog .create_namespace (namespace = database_name )
173173 table_strip = test_catalog .create_table (identifier , table_schema_nested )
174- assert table_strip .identifier == ( catalog_name ,) + identifier
174+ assert table_strip .identifier == identifier
175175 assert TABLE_METADATA_LOCATION_REGEX .match (table_strip .metadata_location )
176176
177177
@@ -219,7 +219,7 @@ def test_load_table(
219219 test_catalog .create_namespace (namespace = database_name )
220220 test_catalog .create_table (identifier , table_schema_nested )
221221 table = test_catalog .load_table (identifier )
222- assert table .identifier == ( catalog_name ,) + identifier
222+ assert table .identifier == identifier
223223 assert TABLE_METADATA_LOCATION_REGEX .match (table .metadata_location )
224224
225225
@@ -234,7 +234,7 @@ def test_load_table_from_self_identifier(
234234 test_catalog .create_table (identifier , table_schema_nested )
235235 intermediate = test_catalog .load_table (identifier )
236236 table = test_catalog .load_table (intermediate .identifier )
237- assert table .identifier == ( catalog_name ,) + identifier
237+ assert table .identifier == identifier
238238 assert TABLE_METADATA_LOCATION_REGEX .match (table .metadata_location )
239239
240240
@@ -257,7 +257,7 @@ def test_drop_table(
257257 test_catalog .create_namespace (namespace = database_name )
258258 test_catalog .create_table (identifier , table_schema_nested )
259259 table = test_catalog .load_table (identifier )
260- assert table .identifier == ( catalog_name ,) + identifier
260+ assert table .identifier == identifier
261261 assert TABLE_METADATA_LOCATION_REGEX .match (table .metadata_location )
262262 test_catalog .drop_table (identifier )
263263 with pytest .raises (NoSuchTableError ):
@@ -274,7 +274,7 @@ def test_drop_table_from_self_identifier(
274274 test_catalog .create_namespace (namespace = database_name )
275275 test_catalog .create_table (identifier , table_schema_nested )
276276 table = test_catalog .load_table (identifier )
277- assert table .identifier == ( catalog_name ,) + identifier
277+ assert table .identifier == identifier
278278 assert TABLE_METADATA_LOCATION_REGEX .match (table .metadata_location )
279279 test_catalog .drop_table (table .identifier )
280280 with pytest .raises (NoSuchTableError ):
@@ -302,11 +302,11 @@ def test_rename_table(
302302 test_catalog = DynamoDbCatalog (catalog_name , ** {"warehouse" : f"s3://{ BUCKET_NAME } " , "s3.endpoint" : moto_endpoint_url })
303303 test_catalog .create_namespace (namespace = database_name )
304304 table = test_catalog .create_table (identifier , table_schema_nested )
305- assert table .identifier == ( catalog_name ,) + identifier
305+ assert table .identifier == identifier
306306 assert TABLE_METADATA_LOCATION_REGEX .match (table .metadata_location )
307307 test_catalog .rename_table (identifier , new_identifier )
308308 new_table = test_catalog .load_table (new_identifier )
309- assert new_table .identifier == ( catalog_name ,) + new_identifier
309+ assert new_table .identifier == new_identifier
310310 # the metadata_location should not change
311311 assert new_table .metadata_location == table .metadata_location
312312 # old table should be dropped
@@ -325,11 +325,11 @@ def test_rename_table_from_self_identifier(
325325 test_catalog = DynamoDbCatalog (catalog_name , ** {"warehouse" : f"s3://{ BUCKET_NAME } " , "s3.endpoint" : moto_endpoint_url })
326326 test_catalog .create_namespace (namespace = database_name )
327327 table = test_catalog .create_table (identifier , table_schema_nested )
328- assert table .identifier == ( catalog_name ,) + identifier
328+ assert table .identifier == identifier
329329 assert TABLE_METADATA_LOCATION_REGEX .match (table .metadata_location )
330330 test_catalog .rename_table (table .identifier , new_identifier )
331331 new_table = test_catalog .load_table (new_identifier )
332- assert new_table .identifier == ( catalog_name ,) + new_identifier
332+ assert new_table .identifier == new_identifier
333333 # the metadata_location should not change
334334 assert new_table .metadata_location == table .metadata_location
335335 # old table should be dropped
0 commit comments