[tests] use "isinstance" instead of "type"

This commit is contained in:
Maxime Alves LIRMM 2021-05-28 12:26:51 +02:00
parent 89a5f3aa52
commit c7e29e399b
1 changed files with 4 additions and 4 deletions

View File

@ -122,8 +122,8 @@ async def test_JWTAuthenticationBackend(token_builder):
})
credentials, user = await backend.authenticate(req)
assert type(user) == JWTUser
assert type(credentials) == AuthCredentials
assert isinstance(user, JWTUser)
assert isinstance(credentials, AuthCredentials)
@pytest.mark.asyncio
@ -137,8 +137,8 @@ async def test_JWTAuthenticationBackend_DebugFalse(token_debug_false_builder):
})
credentials, user = await backend.authenticate(req)
assert type(user) == JWTUser
assert type(credentials) == AuthCredentials
assert isinstance(user, JWTUser)
assert isinstance(credentials, AuthCredentials)
@pytest.mark.asyncio