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

Class FailingAsyncClient

tests/test_retrieval_disabled_mode.py:158–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 get_settings.cache_clear()
157
158 class FailingAsyncClient:
159 def __init__(self, *args, **kwargs):
160 pass
161
162 async def __aenter__(self):
163 return self
164
165 async def __aexit__(self, exc_type, exc, tb):
166 return None
167
168 async def get(self, *args, **kwargs):
169 raise httpx.ConnectError('boom')
170
171 monkeypatch.setattr(paper_search_module.httpx, 'AsyncClient', FailingAsyncClient)
172

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected