Skip to content

Commit 8cac468

Browse files
Update testing (#13821)
* changes for test_table.py * fixed up testing, noting which tests do not pass and the reasoning * small additions to testing * updated unicode test for storage * final update * updates that fix user_agent tests * test CI returns a longer user agent so flipping the order for this test should solve the issue * addresses anna's comments * re-recorded a test with a recording error * removed list comprehension for python3.5 compatability * fixing a testing bug
1 parent 092af33 commit 8cac468

File tree

191 files changed

+4777
-4453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+4777
-4453
lines changed

sdk/tables/azure-data-tables/azure/data/tables/_table_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from ._entity import TableEntity
2222
from ._generated import AzureTable
2323
from ._generated.models import (
24-
AccessPolicy,
24+
# AccessPolicy,
2525
SignedIdentifier,
2626
TableProperties,
2727
QueryOptions
@@ -32,7 +32,7 @@
3232
from ._serialize import serialize_iso
3333
from ._deserialize import _return_headers_and_deserialized
3434
from ._error import _process_table_error
35-
from ._models import TableEntityPropertiesPaged, UpdateMode
35+
from ._models import TableEntityPropertiesPaged, UpdateMode, AccessPolicy
3636

3737

3838
class TableClient(TableClientBase):
@@ -155,7 +155,7 @@ def get_table_access_policy(
155155
**kwargs)
156156
except HttpResponseError as error:
157157
_process_table_error(error)
158-
return {s.id: s.access_policy or AccessPolicy() for s in identifiers} # pylint: disable=E1125
158+
return {s.id: s.access_policy or AccessPolicy() for s in identifiers}
159159

160160
@distributed_trace
161161
def set_table_access_policy(

sdk/tables/azure-data-tables/azure/data/tables/aio/_table_client_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(
4444
self,
4545
account_url, # type: str
4646
table_name, # type: str
47-
credential, # type : Optional[Any]=None
47+
credential=None, # type : Optional[Any]=None
4848
**kwargs # type: Any
4949
):
5050
# type: (...) -> None
@@ -163,7 +163,7 @@ async def get_table_access_policy(
163163
**kwargs)
164164
except HttpResponseError as error:
165165
_process_table_error(error)
166-
return {s.id: s.access_policy or AccessPolicy() for s in identifiers}
166+
return {s.id: s.access_policy or AccessPolicy(start=None, expiry=None, permission=None) for s in identifiers}
167167

168168
@distributed_trace_async
169169
async def set_table_access_policy(

0 commit comments

Comments
 (0)