File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import aiohttp
22
3+ from auth0 .authentication .base import AuthenticationBase
34from auth0 .rest import RestClientOptions
45from auth0 .rest_async import AsyncRestClient
5- from auth0 .authentication .base import AuthenticationBase
66
77
88def _gen_async (client , method ):
@@ -67,7 +67,7 @@ def __init__(
6767
6868 class Wrapper (cls ):
6969 def __init__ (self , * args , ** kwargs ):
70- super (Wrapper , self ).__init__ (* args , ** kwargs )
70+ super ().__init__ (* args , ** kwargs )
7171 if AuthenticationBase in cls .__bases__ :
7272 self ._async_client = AsyncAuthenticationClient (* args , ** kwargs )
7373 else :
Original file line number Diff line number Diff line change 1212from callee import Attrs
1313
1414from auth0 .asyncify import asyncify
15- from auth0 .management import Clients , Guardian , Jobs
1615from auth0 .authentication import GetToken
16+ from auth0 .management import Clients , Guardian , Jobs
1717
1818clients = re .compile (r"^https://example\.com/api/v2/clients.*" )
1919token = re .compile (r"^https://example\.com/oauth/token.*" )
@@ -91,7 +91,6 @@ async def test_post_auth(self, mocked):
9191 callback , mock = get_callback ()
9292 mocked .post (token , callback = callback )
9393 c = asyncify (GetToken )("example.com" , "cid" , client_secret = "clsec" )
94- g = GetToken ("my.domain.com" , "cid" , client_secret = "clsec" )
9594 self .assertEqual (
9695 await c .login_async (username = "usrnm" , password = "pswd" ), payload
9796 )
You can’t perform that action at this time.
0 commit comments