From f6b9e86ccbdf1d6253c7fd66ba6b46eb574be142 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Sun, 9 Jul 2023 17:51:32 +0200 Subject: [PATCH] Fix test_browse_website (#4925) Co-authored-by: merwanehamadi --- tests/integration/test_web_selenium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/test_web_selenium.py b/tests/integration/test_web_selenium.py index f98b2971..e900b4b3 100644 --- a/tests/integration/test_web_selenium.py +++ b/tests/integration/test_web_selenium.py @@ -12,6 +12,6 @@ def test_browse_website(agent: Agent, patched_api_requestor: MockerFixture): question = "How to execute a barrel roll" response = browse_website(url, question, agent) - assert "Error" in response + assert "error" in response.lower() # Sanity check that the response is not too long assert len(response) < 200