From 7faf310b3f6caf97f6fbfe8a3cf483124151961a Mon Sep 17 00:00:00 2001 From: Aigerim Date: Thu, 17 Feb 2022 11:39:39 +0100 Subject: [PATCH] fix cspell issues for azure-communication identity (#22636) (#23085) Co-authored-by: Aigerim Beishenbekova --- .vscode/cspell.json | 12 +++++++++++- .../azure/communication/chat/_shared/models.py | 2 +- .../azure/communication/identity/_shared/models.py | 2 +- .../tests/user_credential_tests.py | 2 +- .../communication/networktraversal/_shared/models.py | 2 +- .../communication/phonenumbers/_shared/models.py | 2 +- .../azure/communication/sms/_shared/models.py | 2 +- 7 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 455261b550cf..8228c0b94d4e 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -51,7 +51,6 @@ "sdk/cognitiveservices/azure-cognitiveservices-search-visualsearch/**", "sdk/communication/azure-communication-networktraversal/**", "sdk/communication/azure-communication-chat/**", - "sdk/communication/azure-communication-identity/**", "sdk/communication/azure-communication-phonenumbers/**", "sdk/communication/azure-communication-sms/**", "sdk/confidentialledger/azure-confidentialledger/**", @@ -155,6 +154,7 @@ "fqdns", "fstat", "gbps", + "GCCH", "graphrbac", "guids", "hanaonazure", @@ -327,6 +327,16 @@ "verfasst", "engelska" ] + }, + { + "filename": "sdk/communication/azure-communication-identity/tests/*.py", + "words": [ + "XVCJ", + "Njgw", + "FNNHHJT", + "Zwiz", + "nypg" + ] } ], "allowCompoundWords": true diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py index 7820b25a7d1a..45aa585aed4d 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/models.py @@ -25,7 +25,7 @@ class CommunicationIdentifierKind(with_metaclass(CaseInsensitiveEnumMeta, str, E class CommunicationCloudEnvironment(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): - """The cloud enviornment that the identifier belongs to""" + """The cloud environment that the identifier belongs to""" PUBLIC = "PUBLIC" DOD = "DOD" diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/models.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/models.py index 7820b25a7d1a..45aa585aed4d 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/models.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/models.py @@ -25,7 +25,7 @@ class CommunicationIdentifierKind(with_metaclass(CaseInsensitiveEnumMeta, str, E class CommunicationCloudEnvironment(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): - """The cloud enviornment that the identifier belongs to""" + """The cloud environment that the identifier belongs to""" PUBLIC = "PUBLIC" DOD = "DOD" diff --git a/sdk/communication/azure-communication-identity/tests/user_credential_tests.py b/sdk/communication/azure-communication-identity/tests/user_credential_tests.py index dddacc8784af..ec461402d09a 100644 --- a/sdk/communication/azure-communication-identity/tests/user_credential_tests.py +++ b/sdk/communication/azure-communication-identity/tests/user_credential_tests.py @@ -49,7 +49,7 @@ def test_communicationtokencredential_token_expired_refresh_called(self): self.assertEqual(access_token, self.sample_token) - def test_communicationtokencredential_token_expired_refresh_called_asnecessary(self): + def test_communicationtokencredential_token_expired_refresh_called_as_necessary(self): refresher = MagicMock(return_value=create_access_token(self.expired_token)) refresh_options = CommunicationTokenRefreshOptions(self.expired_token, refresher) credential = CommunicationTokenCredential(refresh_options) diff --git a/sdk/communication/azure-communication-networktraversal/azure/communication/networktraversal/_shared/models.py b/sdk/communication/azure-communication-networktraversal/azure/communication/networktraversal/_shared/models.py index 7820b25a7d1a..45aa585aed4d 100644 --- a/sdk/communication/azure-communication-networktraversal/azure/communication/networktraversal/_shared/models.py +++ b/sdk/communication/azure-communication-networktraversal/azure/communication/networktraversal/_shared/models.py @@ -25,7 +25,7 @@ class CommunicationIdentifierKind(with_metaclass(CaseInsensitiveEnumMeta, str, E class CommunicationCloudEnvironment(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): - """The cloud enviornment that the identifier belongs to""" + """The cloud environment that the identifier belongs to""" PUBLIC = "PUBLIC" DOD = "DOD" diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/models.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/models.py index 7820b25a7d1a..45aa585aed4d 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/models.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/models.py @@ -25,7 +25,7 @@ class CommunicationIdentifierKind(with_metaclass(CaseInsensitiveEnumMeta, str, E class CommunicationCloudEnvironment(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): - """The cloud enviornment that the identifier belongs to""" + """The cloud environment that the identifier belongs to""" PUBLIC = "PUBLIC" DOD = "DOD" diff --git a/sdk/communication/azure-communication-sms/azure/communication/sms/_shared/models.py b/sdk/communication/azure-communication-sms/azure/communication/sms/_shared/models.py index 7820b25a7d1a..45aa585aed4d 100644 --- a/sdk/communication/azure-communication-sms/azure/communication/sms/_shared/models.py +++ b/sdk/communication/azure-communication-sms/azure/communication/sms/_shared/models.py @@ -25,7 +25,7 @@ class CommunicationIdentifierKind(with_metaclass(CaseInsensitiveEnumMeta, str, E class CommunicationCloudEnvironment(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): - """The cloud enviornment that the identifier belongs to""" + """The cloud environment that the identifier belongs to""" PUBLIC = "PUBLIC" DOD = "DOD"