fix tests

This commit is contained in:
2025-09-29 09:14:32 -03:00
parent c527fa0245
commit daddab444f
2 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
import json
import pprint
from base64 import b64encode
from http import HTTPMethod, HTTPStatus
from urllib.parse import urlencode
@@ -63,7 +64,7 @@ def test_token(
},
)
assert len(tokens['items']) == 2
assert len(tokens['items']) == 3
r = app.lambda_handler(
http_api_proxy(
@@ -94,7 +95,7 @@ def test_token(
':pk': 'OAUTH2#TOKEN',
},
)
assert len(tokens['items']) == 0
assert len(tokens['items']) == 1
sessions = dynamodb_persistence_layer.query(
key_cond_expr='#pk = :pk',

View File

@@ -1,5 +1,4 @@
import json
import pprint
from base64 import b64encode
from http import HTTPMethod, HTTPStatus
from urllib.parse import urlencode
@@ -81,6 +80,7 @@ def test_token(
':pk': 'OAUTH2#TOKEN',
},
)
assert len(r['items']) == 4