This commit is contained in:
Bert Blommers 2020-09-13 19:42:38 +01:00
parent 76aa7ce0ab
commit 0ab21f62a8
5 changed files with 10 additions and 4 deletions

View File

View File

@ -3,6 +3,7 @@ import json
from copy import deepcopy
from moto import mock_cloudformation, mock_ecs
@mock_ecs
@mock_cloudformation
def test_update_task_definition_family_through_cloudformation_should_trigger_a_replacement():

View File

@ -2048,7 +2048,12 @@ def test_invoke_function_from_sqs_exception():
assert response["EventSourceArn"] == queue.attributes["QueueArn"]
assert response["State"] == "Enabled"
entries = [{"Id": "1", "MessageBody": json.dumps({"uuid": str(uuid.uuid4()), "test": "test"})}]
entries = [
{
"Id": "1",
"MessageBody": json.dumps({"uuid": str(uuid.uuid4()), "test": "test"}),
}
]
queue.send_messages(Entries=entries)