tests.test_tokens
Test the token endpoints
Module Contents
Functions
|
Get a code |
|
Test that we can get a new code |
|
Test that we get error if trying to give wrong input |
|
Use the code |
|
Test that we can get a new code and use one with fresh session |
|
Test that we can get a new code and re-using it fails |
|
Test that the refresh endpoint works |
Attributes
- async get_code(client)[source]
Get a code
- Parameters:
client (async_asgi_testclient.TestClient)
- Return type:
- async test_get_code(tilauspalvelu_jwt_client)[source]
Test that we can get a new code
- Parameters:
tilauspalvelu_jwt_client (async_asgi_testclient.TestClient)
- Return type:
None
- async test_get_code_422(tilauspalvelu_jwt_client)[source]
Test that we get error if trying to give wrong input
- Parameters:
tilauspalvelu_jwt_client (async_asgi_testclient.TestClient)
- Return type:
None
- async test_use_code(tilauspalvelu_jwt_client, unauth_client)[source]
Test that we can get a new code and use one with fresh session
- Parameters:
tilauspalvelu_jwt_client (async_asgi_testclient.TestClient)
unauth_client (async_asgi_testclient.TestClient)
- Return type:
None