Skip to content

Commit 9f68b28

Browse files
fix
1 parent d1e43a7 commit 9f68b28

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tests/test_dsm.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ def test_kinesis_multiple_records_process_each_record(self):
309309
"eventSourceARN": "arn:aws:kinesis:us-east-1:123456789012:stream/stream1",
310310
"kinesis": {
311311
"data": base64.b64encode(
312-
json.dumps({"dd-pathway-ctx-base64": "context1"}).encode("utf-8")
312+
json.dumps({"dd-pathway-ctx-base64": "context1"}).encode(
313+
"utf-8"
314+
)
313315
).decode("utf-8"),
314316
"partitionKey": "partition-1",
315317
},
@@ -318,7 +320,9 @@ def test_kinesis_multiple_records_process_each_record(self):
318320
"eventSourceARN": "arn:aws:kinesis:us-east-1:123456789012:stream/stream2",
319321
"kinesis": {
320322
"data": base64.b64encode(
321-
json.dumps({"dd-pathway-ctx-base64": "context2"}).encode("utf-8")
323+
json.dumps({"dd-pathway-ctx-base64": "context2"}).encode(
324+
"utf-8"
325+
)
322326
).decode("utf-8"),
323327
"partitionKey": "partition-2",
324328
},
@@ -327,7 +331,9 @@ def test_kinesis_multiple_records_process_each_record(self):
327331
"eventSourceARN": "arn:aws:kinesis:us-east-1:123456789012:stream/stream3",
328332
"kinesis": {
329333
"data": base64.b64encode(
330-
json.dumps({"dd-pathway-ctx-base64": "context3"}).encode("utf-8")
334+
json.dumps({"dd-pathway-ctx-base64": "context3"}).encode(
335+
"utf-8"
336+
)
331337
).decode("utf-8"),
332338
"partitionKey": "partition-3",
333339
},

0 commit comments

Comments
 (0)