fix search_engine_serper arbitrary types error

This commit is contained in:
shenchucheng 2024-01-03 10:18:55 +08:00
parent 38015322b6
commit 269750e616
3 changed files with 6 additions and 4 deletions

View file

@ -58,7 +58,7 @@ async def test_search_engine(search_engine_type, run_func: Callable, max_results
assert isinstance(rsp, str)
else:
assert isinstance(rsp, list)
assert len(rsp) == max_results
assert len(rsp) <= max_results
if __name__ == "__main__":