fix tests/metagpt/learn/test_google_search.py error

This commit is contained in:
shenchucheng 2024-01-31 15:58:26 +08:00
parent 16f54abb3d
commit fc412e55a3
6 changed files with 135 additions and 17 deletions

View file

@ -39,3 +39,7 @@ class MockAioResponse:
data = await self.response.json(*args, **kwargs)
self.rsp_cache[self.key] = data
return data
def raise_for_status(self):
if self.response:
self.response.raise_for_status()