mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-29 15:59:42 +02:00
fix search_engine_serper arbitrary types error
This commit is contained in:
parent
38015322b6
commit
269750e616
3 changed files with 6 additions and 4 deletions
|
|
@ -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__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue