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

Function fake_synthesize

tests/test_desktop_gui.py:2610–2618  ·  view source on GitHub ↗
(*_args, **_kwargs)

Source from the content-addressed store, hash-verified

2608 {"id": 1, "title": "Concurrent Paper One", "abstract": "A", "authors": ["Alice"]},
2609 {"id": 2, "title": "Concurrent Paper Two", "abstract": "B", "authors": ["Bob"]},
2610 ]
2611
2612 monkeypatch.setenv("PAPERFLOW_READING_REPORT_CONCURRENCY", "2")
2613 monkeypatch.setattr(agents.reading_agent, "get_profile", lambda _user_id: {"core_directions": {}})
2614 monkeypatch.setattr(agents.reading_agent, "ensure_profile_schema", lambda profile: profile)
2615 monkeypatch.setattr(agents.reading_agent, "get_existing_reading_reports_for_papers", lambda _user_id, _paper_ids: {})
2616 monkeypatch.setattr(agents.reading_agent, "_enrich_paper_for_reading_report_compat", lambda item, user_id=None: (item, None, None))
2617 monkeypatch.setattr(agents.reading_agent, "build_heuristic_report_payload", lambda *_args, **_kwargs: {"analysis_source": "abstract", "recommendation_label": "推荐阅读"})
2618 monkeypatch.setattr(agents.reading_agent, "generate_reading_report", lambda paper, *_args, **_kwargs: f"# {paper['title']}")
2619 monkeypatch.setattr(agents.reading_agent, "_save_reading_report_markdown", lambda **kwargs: str(tmp_path / f"{kwargs['paper']['id']}.md"))
2620 monkeypatch.setattr(agents.reading_agent, "ingest_reading_report_to_wiki", lambda **_kwargs: {})
2621 monkeypatch.setattr(agents.reading_agent, "log_behavior", lambda **_kwargs: None)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected