| 9 | |
| 10 | |
| 11 | class _DummyOutputManager: |
| 12 | def __init__(self, output_dir, *_args, **_kwargs): |
| 13 | from pathlib import Path |
| 14 | |
| 15 | Path(output_dir).mkdir(parents=True, exist_ok=True) |
| 16 | self.saved_users = None |
| 17 | self.saved_paper_pools = [] |
| 18 | |
| 19 | def save_user_metadata(self, users): |
| 20 | self.saved_users = users |
| 21 | |
| 22 | def save_paper_pool(self, date, papers, new_papers_count=0, total_papers=None): |
| 23 | self.saved_paper_pools.append( |
| 24 | { |
| 25 | "date": date, |
| 26 | "papers": papers, |
| 27 | "new_papers_count": new_papers_count, |
| 28 | "total_papers": total_papers, |
| 29 | } |
| 30 | ) |
| 31 | |
| 32 | def close(self): |
| 33 | return None |
| 34 | |
| 35 | |
| 36 | def test_case_simulation_uses_only_same_day_papers(monkeypatch, tmp_path): |
nothing calls this directly
no outgoing calls
no test coverage detected