-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tables] Make credential parameter keyword-only #19117
Conversation
/azp run python - tables - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -65,7 +65,7 @@ async def delete_entity(self): | |||
from azure.core.credentials import AzureNamedKeyCredential | |||
|
|||
credential = AzureNamedKeyCredential(self.account_name, self.access_key) | |||
table_client = TableClient(endpoint=self.endpoint, credential=credential, table_name=self.table_name) | |||
table_client = TableClient(endpoint=self.endpoint, table_name=self.table_name, credential=credential) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: does this have to be the last keyword?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't, but given the endpoint, table_name
are the two positional parameters - I thought for the samples it would be best to demonstrate the correct order. I didn't bother swapping them in the tests ;)
@@ -36,7 +36,7 @@ class StorageTableTest(AzureTestCase, TableTestCase): | |||
def test_create_properties(self, tables_storage_account_name, tables_primary_storage_account_key): | |||
# # Arrange | |||
account_url = self.account_url(tables_storage_account_name, "table") | |||
ts = self.create_client_from_credential(TableServiceClient, tables_primary_storage_account_key, endpoint=account_url) | |||
ts = TableServiceClient(credential=tables_primary_storage_account_key, endpoint=account_url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this passes I'd keep it for now, but you can also change it to credential=tables_primary_storage_account_key
. Small nit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nits
Support.json Get Support Ticket serviceId + ProbClassId filter changes (Azure#19117) * Support.json Get Support Ticket serviceId + ProbClassId filter changes * Add list tickets service + probClassId examples * Reference example files in support.json * List Support tickets example files formatting * Service Id problem class id example prettier format fix
No description provided.