Skip to content

Commit 314f1fe

Browse files
committed
fix test
1 parent 171bae3 commit 314f1fe

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/_plugins/ui/_impl/chat/test_chat.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
ChatModelConfig,
1212
ChatModelConfigDict,
1313
)
14-
from marimo._output.md import md
1514
from marimo._plugins import ui
1615
from 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

Comments
 (0)