Skip to content

Commit 4ace67e

Browse files
committed
feat(etl): FTRS-1992 Fixing consumer
1 parent 0b3045e commit 4ace67e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/etl-ods/tests/unit/test_consumer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def test_process_message_and_send_request_success(
191191

192192
record = {
193193
"messageId": "1",
194-
"body": '"{\\"path\\": \\"uuid\\", \\"body\\": {\\"name\\": \\"Organization Name\\"}}"',
194+
"body": '{"path": "uuid", "body": {"name": "Organization Name"}}',
195195
}
196196

197197
process_message_and_send_request(record)
@@ -337,10 +337,10 @@ def test_process_message_and_send_request_with_string_body_and_correlation_id(
337337
json=mock_response,
338338
)
339339

340-
# Simulate SQS message format with double-encoded JSON and correlation_id
340+
# Simulate SQS message format with single-encoded JSON and correlation_id
341341
record = {
342342
"messageId": "msg-123",
343-
"body": '"{\\"path\\": \\"test-uuid-123\\", \\"body\\": {\\"name\\": \\"Test Org\\"}, \\"correlation_id\\": \\"corr-id-456\\"}"',
343+
"body": '{"path": "test-uuid-123", "body": {"name": "Test Org"}, "correlation_id": "corr-id-456"}',
344344
}
345345

346346
process_message_and_send_request(record)

0 commit comments

Comments
 (0)