Skip to content

Commit 5fffe4f

Browse files
committed
fix test
1 parent 1cc0ffc commit 5fffe4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-sdk/tests/test_encoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_encode_method(self):
2929
encoded = encoder.encode(event)
3030

3131
# The encode method calls encode_sse, so the result should be in SSE format
32-
expected = f"data: {event.model_dump_json(by_alias=True, exclude_none=True)}\n\n"
32+
expected = f"""data: {"type": {EventType.RAW}, "timestamp": {timestamp}}\n\n"""
3333
self.assertEqual(encoded, expected)
3434

3535
# Verify that camelCase is used in the encoded output

0 commit comments

Comments
 (0)