MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / fail_http_get

Function fail_http_get

tests/test_journal_fetcher.py:496–497  ·  view source on GitHub ↗
(url, **kwargs)

Source from the content-addressed store, hash-verified

494
495def test_fetch_article_detail_falls_back_to_scholarly_metadata_when_page_is_blocked(monkeypatch):
496 def fail_http_get(url, **kwargs):
497 raise RuntimeError("403 forbidden")
498
499 monkeypatch.setattr(journal_fetcher, "_http_get", fail_http_get)
500 monkeypatch.setattr(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected