From e2b5a4a1d381c0664192b8dfb00eb4861a493356 Mon Sep 17 00:00:00 2001 From: Sean Kane <68240067+seankane-msft@users.noreply.github.com> Date: Fri, 23 Apr 2021 15:57:41 -0400 Subject: [PATCH] [Tables] hot fix for pipelines (#18273) --- sdk/tables/azure-data-tables/tests/test_table.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/sdk/tables/azure-data-tables/tests/test_table.py b/sdk/tables/azure-data-tables/tests/test_table.py index 54fdd8270a28..90cce3deb7ba 100644 --- a/sdk/tables/azure-data-tables/tests/test_table.py +++ b/sdk/tables/azure-data-tables/tests/test_table.py @@ -68,16 +68,14 @@ def _create_table(self, ts, prefix=TEST_TABLE_PREFIX, table_list=None): return table def _delete_table(self, ts, table): - if table is None: - return - try: - ts.delete_table(table.name) - except ResourceNotFoundError: - pass + if table: + try: + 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 @@ def test_account_sas(self, tables_storage_account_name, tables_primary_storage_a # 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