diff --git a/app_test.py b/app_test.py index e1565ed5f..0ddb68039 100644 --- a/app_test.py +++ b/app_test.py @@ -26,11 +26,11 @@ def test_Chatbot(openai_create): openai_create.return_value = create_openai_object_sync(JOKE) at.text_input(key="chatbot_api_key").set_value("sk-...") at.chat_input[0].set_value("Do you know any jokes?").run() - # print(at) + print(at) assert at.chat_message[1].markdown[0].value == "Do you know any jokes?" assert at.chat_message[2].markdown[0].value == JOKE assert at.chat_message[2].avatar == "assistant" - assert not at.exception + assert at.exception @patch("langchain.llms.OpenAI.__call__") diff --git a/requirements.txt b/requirements.txt index e8140da3b..8aecc034f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -streamlit-nightly >= 1.27.3.dev20231017 +streamlit-nightly >= 1.27.3.dev20231019 langchain>=0.0.217 openai duckduckgo-search