22 lines
538 B
Python
22 lines
538 B
Python
from aws_lambda_powertools.utilities.typing.lambda_context import LambdaContext
|
|
from layercake.dynamodb import DynamoDBPersistenceLayer
|
|
|
|
import events.payments.create_invoice as app
|
|
|
|
|
|
def test_create_invoice(
|
|
dynamodb_seeds,
|
|
dynamodb_persistence_layer: DynamoDBPersistenceLayer,
|
|
lambda_context: LambdaContext,
|
|
):
|
|
event = {
|
|
'detail': {
|
|
'new_image': {
|
|
'id': '',
|
|
'sk': '0'
|
|
}
|
|
}
|
|
}
|
|
|
|
assert app.lambda_handler(event, lambda_context) # type: ignore
|