| 765 | monkeypatch.setenv("READING_REPORT_PDF_MODE", "off") |
| 766 | |
| 767 | class FakeJournalFetcher: |
| 768 | @staticmethod |
| 769 | def _fetch_article_detail(url): |
| 770 | return { |
| 771 | "title": "Recovered Nature Paper", |
| 772 | "authors": ["Alice", "Bob"], |
| 773 | "abstract": "Recovered abstract from the article detail page with concrete method and results information.", |
| 774 | "pdf_url": "https://www.nature.com/articles/example.pdf", |
| 775 | } |
| 776 | |
| 777 | monkeypatch.setattr(reading_agent, "_load_journal_fetcher", lambda: FakeJournalFetcher()) |
| 778 | monkeypatch.setattr( |
no outgoing calls