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

Class FakeResponse

experiments/tests/test_paper_stack.py:169–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168def test_openreview_search_papers_fetches_official_cvf_page(monkeypatch):
169 class FakeResponse:
170 def __init__(self, text, status_code=200):
171 self.text = text
172 self.status_code = status_code
173
174 def raise_for_status(self):
175 if self.status_code >= 400:
176 raise RuntimeError(f"http {self.status_code}")
177
178 index_html = """
179 <dt class="ptitle"><br><a href="/content/CVPR2025/html/Example_Paper_CVPR_2025_paper.html">Example CVPR Paper</a></dt>

Callers 2

fake_getFunction · 0.70
fake_postFunction · 0.70

Calls

no outgoing calls

Tested by 2

fake_getFunction · 0.56
fake_postFunction · 0.56