Skip to content

Commit bde823b

Browse files
fix
1 parent e7a4532 commit bde823b

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
@@ -306,7 +306,9 @@ def test_kinesis_multiple_records_process_each_record(self):
306306
"eventSourceARN": "arn:aws:kinesis:us-east-1:123456789012:stream/stream1",
307307
"kinesis": {
308308
"data": base64.b64encode(
309-
json.dumps({"dd-pathway-ctx-base64": "context1"}).encode("utf-8")
309+
json.dumps({"dd-pathway-ctx-base64": "context1"}).encode(
310+
"utf-8"
311+
)
310312
).decode("utf-8"),
311313
"partitionKey": "partition-1",
312314
},
@@ -315,7 +317,9 @@ def test_kinesis_multiple_records_process_each_record(self):
315317
"eventSourceARN": "arn:aws:kinesis:us-east-1:123456789012:stream/stream2",
316318
"kinesis": {
317319
"data": base64.b64encode(
318-
json.dumps({"dd-pathway-ctx-base64": "context2"}).encode("utf-8")
320+
json.dumps({"dd-pathway-ctx-base64": "context2"}).encode(
321+
"utf-8"
322+
)
319323
).decode("utf-8"),
320324
"partitionKey": "partition-2",
321325
},
@@ -324,7 +328,9 @@ def test_kinesis_multiple_records_process_each_record(self):
324328
"eventSourceARN": "arn:aws:kinesis:us-east-1:123456789012:stream/stream3",
325329
"kinesis": {
326330
"data": base64.b64encode(
327-
json.dumps({"dd-pathway-ctx-base64": "context3"}).encode("utf-8")
331+
json.dumps({"dd-pathway-ctx-base64": "context3"}).encode(
332+
"utf-8"
333+
)
328334
).decode("utf-8"),
329335
"partitionKey": "partition-3",
330336
},

0 commit comments

Comments
 (0)