MCPcopy Create free account
hub / github.com/ResearAI/DeepReviewer-v2 / PasaAsyncClient

Class PasaAsyncClient

tests/test_retrieval_disabled_mode.py:314–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected