1111 ChatModelConfig ,
1212 ChatModelConfigDict ,
1313)
14- from marimo ._output .md import md
1514from marimo ._plugins import ui
1615from marimo ._plugins .ui ._impl .chat .chat import (
1716 DEFAULT_CONFIG ,
@@ -83,7 +82,7 @@ def mock_model(
8382 )
8483 response : str = await chat ._send_prompt (request )
8584
86- assert response == md ( "Response to: Hello" ). text
85+ assert response == "Response to: Hello"
8786 assert len (chat ._chat_history ) == 2
8887 assert chat ._chat_history [0 ].role == "user"
8988 assert chat ._chat_history [0 ].content == "Hello"
@@ -106,7 +105,7 @@ async def mock_model(
106105 )
107106 response : str = await chat ._send_prompt (request )
108107
109- assert response == md ( "Response to: Hello" ). text
108+ assert response == "Response to: Hello"
110109 assert len (chat ._chat_history ) == 2
111110 assert chat ._chat_history [0 ].role == "user"
112111 assert chat ._chat_history [0 ].content == "Hello"
@@ -132,7 +131,7 @@ async def mock_model(
132131 response : str = await chat ._send_prompt (request )
133132
134133 # the last yielded value is the response
135- assert response == md ( "2" ). text
134+ assert response == "2"
136135 assert len (chat ._chat_history ) == 2
137136 assert chat ._chat_history [0 ].role == "user"
138137 assert chat ._chat_history [0 ].content == "Hello"
0 commit comments