| 312 | calls: list[dict] = [] |
| 313 | |
| 314 | class PasaAsyncClient: |
| 315 | def __init__(self, *args, **kwargs): |
| 316 | pass |
| 317 | |
| 318 | async def __aenter__(self): |
| 319 | return self |
| 320 | |
| 321 | async def __aexit__(self, exc_type, exc, tb): |
| 322 | return None |
| 323 | |
| 324 | async def get(self, url, **kwargs): |
| 325 | return _json_response(200, {'status': 'healthy'}, url) |
| 326 | |
| 327 | async def post(self, url, **kwargs): |
| 328 | calls.append({'url': url, **kwargs}) |
| 329 | return _json_response( |
| 330 | 200, |
| 331 | [{'title': 'PASA Paper', 'link': '2401.00001', 'snippet': 'abstract'}], |
| 332 | url, |
| 333 | ) |
| 334 | |
| 335 | monkeypatch.setattr(paper_search_module.httpx, 'AsyncClient', PasaAsyncClient) |
| 336 |
nothing calls this directly
no outgoing calls
no test coverage detected