| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected