@@ -108,7 +108,7 @@ def test_streams_a_short_message(self):
108108 self .assertEqual (stop_request .get ("ts" ), "123.123" )
109109 self .assertEqual (
110110 json .dumps (stop_request .get ("chunks" )),
111- '[{"type ": "markdown_text ", "text ": "nice! "}]' ,
111+ '[{"text ": "nice! ", "type ": "markdown_text "}]' ,
112112 )
113113
114114 def test_streams_a_long_message (self ):
@@ -152,7 +152,7 @@ def test_streams_a_long_message(self):
152152 self .assertEqual (start_request .get ("thread_ts" ), "123.000" )
153153 self .assertEqual (
154154 json .dumps (start_request .get ("chunks" )),
155- '[{"type ": "markdown_text ", "text ": "**this messag "}]' ,
155+ '[{"text ": "**this messag ", "type ": "markdown_text "}]' ,
156156 )
157157 self .assertEqual (start_request .get ("recipient_team_id" ), "T0123456789" )
158158 self .assertEqual (start_request .get ("recipient_user_id" ), "U0123456789" )
@@ -161,7 +161,7 @@ def test_streams_a_long_message(self):
161161 self .assertEqual (append_request .get ("channel" ), "C0123456789" )
162162 self .assertEqual (
163163 json .dumps (append_request .get ("chunks" )),
164- '[{"type ": "markdown_text ", "text ": "e is bold! "}]' ,
164+ '[{"text ": "e is bold! ", "type ": "markdown_text "}]' ,
165165 )
166166 self .assertEqual (append_request .get ("token" ), "xoxb-chat_stream_test_token1" )
167167 self .assertEqual (append_request .get ("ts" ), "123.123" )
@@ -174,7 +174,7 @@ def test_streams_a_long_message(self):
174174 self .assertEqual (stop_request .get ("channel" ), "C0123456789" )
175175 self .assertEqual (
176176 json .dumps (stop_request .get ("chunks" )),
177- '[{"type ": "markdown_text ", "text ": "** "}]' ,
177+ '[{"text ": "** ", "type ": "markdown_text "}]' ,
178178 )
179179 self .assertEqual (stop_request .get ("token" ), "xoxb-chat_stream_test_token2" )
180180 self .assertEqual (stop_request .get ("ts" ), "123.123" )
@@ -219,7 +219,7 @@ def test_streams_a_chunk_message(self):
219219 self .assertEqual (start_request .get ("thread_ts" ), "123.000" )
220220 self .assertEqual (
221221 json .dumps (start_request .get ("chunks" )),
222- '[{"type": "markdown_text", " text": "**this is buffered**"}, {"id": "001", "status": "pending", "title": "Counting...", "type": "task_update"}]' ,
222+ '[{"text": "**this is buffered**", "type": "markdown_text "}, {"id": "001", "status": "pending", "title": "Counting...", "type": "task_update"}]' ,
223223 )
224224 self .assertEqual (start_request .get ("recipient_team_id" ), "T0123456789" )
225225 self .assertEqual (start_request .get ("recipient_user_id" ), "U0123456789" )
@@ -237,7 +237,7 @@ def test_streams_a_chunk_message(self):
237237 self .assertEqual (stop_request .get ("ts" ), "123.123" )
238238 self .assertEqual (
239239 json .dumps (stop_request .get ("chunks" )),
240- '[{"type ": "markdown_text ", "text ": "\\ n "}, {"text": ":space_invader:", "type": "markdown_text"}]' ,
240+ '[{"text ": "\\ n ", "type ": "markdown_text "}, {"text": ":space_invader:", "type": "markdown_text"}]' ,
241241 )
242242
243243 def test_streams_errors_when_appending_to_an_unstarted_stream (self ):
0 commit comments