add register
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import json
|
||||
import pprint
|
||||
from base64 import b64encode
|
||||
from http import HTTPMethod, HTTPStatus
|
||||
from urllib.parse import urlencode
|
||||
@@ -35,7 +34,10 @@ def test_token(
|
||||
'redirect_uri': 'https://localhost/callback',
|
||||
'code': 'kyqp3oSuRFTfuBaCmq3XOgGWg67l42Kt3D6xPEj7Yd3MLdi9',
|
||||
'client_id': client_id,
|
||||
'code_verifier': '9072df2d3709425993e733f38fb27a825b8860e699364ce9abafdf51077c0bdb4e456ddb741147a4bec4eeda782d92cc',
|
||||
'code_verifier': (
|
||||
'9072df2d3709425993e733f38fb27a825b8860e699364ce9'
|
||||
'abafdf51077c0bdb4e456ddb741147a4bec4eeda782d92cc'
|
||||
),
|
||||
}
|
||||
),
|
||||
),
|
||||
@@ -45,7 +47,7 @@ def test_token(
|
||||
assert r['statusCode'] == HTTPStatus.OK
|
||||
|
||||
r = json.loads(r['body'])
|
||||
assert r['expires_in'] == 180
|
||||
assert r['expires_in'] == 3600
|
||||
|
||||
tokens = dynamodb_persistence_layer.query(
|
||||
key_cond_expr='#pk = :pk',
|
||||
|
||||
Reference in New Issue
Block a user