WIP
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from http import HTTPMethod, HTTPStatus
|
||||
|
||||
from layercake.dynamodb import DynamoDBPersistenceLayer, KeyPair
|
||||
from layercake.dynamodb import DynamoDBPersistenceLayer, SortKey, TransactKey
|
||||
|
||||
from .conftest import HttpApiProxy, LambdaContext
|
||||
|
||||
@@ -36,6 +36,11 @@ def test_postback(
|
||||
)
|
||||
assert r['statusCode'] == HTTPStatus.NO_CONTENT
|
||||
|
||||
order = dynamodb_persistence_layer.get_item(KeyPair(order_id, '0'))
|
||||
order = dynamodb_persistence_layer.collection.get_items(
|
||||
TransactKey(order_id)
|
||||
+ SortKey('0')
|
||||
+ SortKey('FULFILLMENT', rename_key='fulfillment')
|
||||
)
|
||||
assert 'fulfillment' in order
|
||||
|
||||
assert order['status'] == 'PAID'
|
||||
|
||||
Reference in New Issue
Block a user