[Tables] hot fix for pipelines
@@ -68,16 +68,14 @@ class StorageTableTest(AzureTestCase, TableTestCase):
return table
def _delete_table(self, ts, table):
- if table is None:
- return
+ if table:
try:
- ts.delete_table(table.name)
+ ts.delete_table(table.table_name)
except ResourceNotFoundError:
pass
def _delete_all_tables(self, ts):
- tables = ts.list_tables()
- for table in tables:
+ for table in ts.list_tables():
try:
ts.delete_table(table.name)
except ResourceNotFoundError:
@@ -470,7 +468,7 @@ class StorageTableTest(AzureTestCase, TableTestCase):
# Act
- sas_table = service.get_table_client(table.name)
+ sas_table = service.get_table_client(table.table_name)
entities = list(sas_table.list_entities())
# Assert
