Skip to content

Commit 7f61cf6

Browse files
cpsievertclaude
andauthored
fix(tests): Read UserInput.text in chat module test app (#2327)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e859cfb commit 7f61cf6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ test = [
9393
"timezonefinder ; platform_system != 'Windows'",
9494
"ipyleaflet",
9595
"shinywidgets",
96+
"shinychat>=0.6.0",
9697
"seaborn",
9798
"plotnine",
9899
"plotly",

tests/playwright/shiny/components/chat/module/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def chat_mod_server(input: Inputs, output: Outputs, session: Session):
1515
@chat.on_user_submit
1616
async def _():
1717
user = chat.user_input()
18-
await chat.append_message(f"You said: {user}")
18+
assert user is not None
19+
await chat.append_message(f"You said: {user.text}")
1920

2021

2122
app_ui = ui.page_fillable(

0 commit comments

Comments
 (0)