| 1579 | assert captured["arxiv_categories"] == [] |
| 1580 | assert captured["conferences"] == [] |
| 1581 | assert captured["journals"] == ["Nature"] |
| 1582 | assert captured["enable_semantic_scholar"] is True |
| 1583 | assert captured["enable_custom_rss"] is True |
| 1584 | assert captured["custom_rss_urls"] == ["https://example.com/feed.xml"] |
| 1585 | |
| 1586 | |
| 1587 | def test_daily_arxiv_fetch_filters_out_old_papers(monkeypatch: pytest.MonkeyPatch) -> None: |
| 1588 | captured: dict[str, str] = {} |
| 1589 | |
| 1590 | def fake_arxiv_fetch_by_date(**kwargs): |
| 1591 | captured["start_date"] = kwargs.get("start_date") |
| 1592 | captured["end_date"] = kwargs.get("end_date") |
| 1593 | return [ |
| 1594 | { |