Skip to content

Commit 8b2971b

Browse files
author
Andrew Omondi
committed
chore: fix issues in code
1 parent cb090e8 commit 8b2971b

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

packages/bundle/tests/test_default_request_adapter.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,15 @@
88

99
from 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

2012
def test_invalid_instantiation_without_authprovider():
2113
with pytest.raises(Exception):
22-
adapter = DefaultRequestAdapter(None)
14+
DefaultRequestAdapter(None)
2315

2416

2517
def 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()

0 commit comments

Comments
 (0)