Skip to content

Commit

Permalink
EM-933. Fixing existing tests to work with the new lock table and fie…
Browse files Browse the repository at this point in the history
…lds.
  • Loading branch information
johnmarston-nhs committed Sep 20, 2024
1 parent ff7491d commit 4f69672
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/mocked/mesh_check_send_parameters_application_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ def test_mesh_check_send_parameters_happy_path_chunked(


def test_mesh_check_send_parameters_happy_path_unchunked(
mesh_s3_bucket: str, environment: str, send_message_sfn_arn: str, capsys
mesh_s3_bucket: str,
environment: str,
send_message_sfn_arn: str,
capsys,
mocked_lock_table,
):
"""Test the lambda as a whole, happy path for small file"""
from mesh_check_send_parameters_application import (
Expand Down Expand Up @@ -137,6 +141,8 @@ def test_mesh_check_send_parameters_happy_path_unchunked(
"total_chunks": 1,
"workflow_id": "TESTWORKFLOW",
},
"lock_name": f"SendLock_{mesh_s3_bucket}_X26ABC2/outbound/testfile.json",
"execution_id": "TEST1234",
},
}
response = app.main(event=sample_trigger_event(mesh_s3_bucket), context=CONTEXT)
Expand Down

0 comments on commit 4f69672

Please sign in to comment.