Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
jiasli committed Nov 20, 2024
1 parent ee636e1 commit 8e6991e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/azure-cli-testsdk/azure/cli/testsdk/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ class UserCredentialMock:
def __init__(self, *args, **kwargs):
super().__init__()

def get_token(*args, **kwargs): # pylint: disable=unused-argument
def get_token(self, *scopes, **kwargs): # pylint: disable=unused-argument
# Old Track 2 SDKs are no longer supported. https://github.com/Azure/azure-cli/pull/29690
assert len(scopes) == 1, "'scopes' must contain only one element."

from azure.core.credentials import AccessToken
import time
fake_raw_token = 'top-secret-token-for-you'
Expand Down

0 comments on commit 8e6991e

Please sign in to comment.