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

Class FakeJournalFetcher

experiments/tests/test_reading_report_flow.py:767–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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(

Calls

no outgoing calls