From 9d7af22d8fa34b34e9d2bf3b8380823598556a41 Mon Sep 17 00:00:00 2001 From: Weirui Kuang <39145382+rayrayraykk@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:35:35 +0800 Subject: [PATCH] Fix ut (#456) --- tests/web_search_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/web_search_test.py b/tests/web_search_test.py index 06dcf2057..e0fa2115b 100644 --- a/tests/web_search_test.py +++ b/tests/web_search_test.py @@ -132,6 +132,11 @@ def test_arxiv_search(self) -> None: id_list=["2402.14034"], max_results=1, ) + + if isinstance(res.content, str): + # Error happens in `arxiv_search` + return + self.assertEqual( res.content["entries"][0]["title"], "AgentScope: A Flexible yet Robust Multi-Agent Platform",