File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99from kiota_abstractions .authentication .anonymous_authentication_provider import AnonymousAuthenticationProvider
1010
11- class DummyAsyncAzureTokenCredential :
12- """Helper to mock getting a token asynchronously."""
13-
14- async def get_token (self , * args , ** kwargs ):
15- return {token :"This is a dummy token" , expires_on :123 }
16-
17- async def close (self , * args ):
18- pass
1911
2012def test_invalid_instantiation_without_authprovider ():
2113 with pytest .raises (Exception ):
22- adapter = DefaultRequestAdapter (None )
14+ DefaultRequestAdapter (None )
2315
2416
2517def test_seriliazers_are_registered ():
2618 auth_provider = AnonymousAuthenticationProvider ()
27- adapter = DefaultRequestAdapter (auth_provider )
19+ DefaultRequestAdapter (auth_provider )
2820
2921
3022 seralizers = SerializationWriterFactoryRegistry ().CONTENT_TYPE_ASSOCIATED_FACTORIES .keys ()
You can’t perform that action at this time.
0 commit comments