You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd be very curious to learn whether and how you manage to use something similar to do testing of applications built with chainlit.
Lastly, I would strongly suggest you upgrade if you are offering a public-facing application. There's a lot of security issues in chainlit as well as the dependencies fixed in later releases.
dokterbob
changed the title
What is advised way to write unittests for functions that generate chainlit objects?
Chainlit context not found in unit tests for applications
Nov 19, 2024
Describe the bug
My unittests fails with:
To Reproduce
I have a function that generates chainlit text:
but any sort of unit test like here
results in an error as above. What is recommended way to write unittests for functions that generate chainlit objects?
Expected behavior
An easy way to unit test chainlit generation elements outside of contex, or easy mechanism to mock the context.
chainlit ver.:
1.0.200
The text was updated successfully, but these errors were encountered: