We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cc0ffc commit 5fffe4fCopy full SHA for 5fffe4f
python-sdk/tests/test_encoder.py
@@ -29,7 +29,7 @@ def test_encode_method(self):
29
encoded = encoder.encode(event)
30
31
# 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"
+ expected = f"""data: {"type": {EventType.RAW}, "timestamp": {timestamp}}\n\n"""
33
self.assertEqual(encoded, expected)
34
35
# Verify that camelCase is used in the encoded output
0 commit comments