| 167 | |
| 168 | def 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> |