Skip to content

Commit adb71c2

Browse files
committed
removed commented out code and changed the invalid table name
1 parent 3e04e54 commit adb71c2

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

sdk/table/azure-table/tests/test_table.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ def test_create_table_fail_on_exist(self, resource_group, location, storage_acco
120120
def test_create_table_invalid_name(self, resource_group, location, storage_account, storage_account_key):
121121
# Arrange
122122
ts = TableServiceClient(self.account_url(storage_account, "table"), storage_account_key)
123-
# table_name = self._get_table_reference()
124-
# btable_client = ts.get_table_client(table_name)
125-
invalid_table_name = "$&#*_(%&@*(_("
123+
invalid_table_name = "my_table"
126124

127125
with pytest.raises(ValueError) as excinfo:
128126
ts.create_table(invalid_table_name)
@@ -133,9 +131,7 @@ def test_create_table_invalid_name(self, resource_group, location, storage_accou
133131
def test_delete_table_invalid_name(self, resource_group, location, storage_account, storage_account_key):
134132
# Arrange
135133
ts = TableServiceClient(self.account_url(storage_account, "table"), storage_account_key)
136-
# table_name = self._get_table_reference()
137-
# btable_client = ts.get_table_client(table_name)
138-
invalid_table_name = "$&#*_(%&@*(_("
134+
invalid_table_name = "my_table"
139135

140136
with pytest.raises(ValueError) as excinfo:
141137
ts.create_table(invalid_table_name)

sdk/table/azure-table/tests/test_table_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def test_create_table_client_with_complete_url(self, resource_group, location, s
549549
def test_create_table_client_with_invalid_name(self, resource_group, location, storage_account, storage_account_key):
550550
# Arrange
551551
table_url = "https://{}.table.core.windows.net:443/foo".format(storage_account.name)
552-
invalid_table_name = "$&#*_(%&@*(_("
552+
invalid_table_name = "my_table"
553553

554554
# Assert
555555
with pytest.raises(ValueError) as excinfo:

0 commit comments

Comments
 (0)