class TestIntersphinxCache:
sphinx.IntersphinxCache
Method | send_returns |
Return a function that patches requests.adapters.HTTPAdapter.send so that it returns the provided requests.Response . |
Method | test_cache |
IntersphinxCache.get caches responses to the file system. |
Method | test_getRaisesException |
IntersphinxCache.get returns None if an exception is raised while GETing a URL and logs the exception. |
requests.adapters.HTTPAdapter.send
so that it returns the provided requests.Response
.Parameters | |
monkeypatch:MonkeyPatch | Undocumented |
Returns | |
Callable[ | Undocumented |
IntersphinxCache.get
caches responses to the file system.Parameters | |
tmp_path:Path | Undocumented |
send_returns:Callable[ | Undocumented |
IntersphinxCache.get
returns None
if an exception is raised while GETing a URL and logs the exception.Parameters | |
caplog:CapLog | Undocumented |