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

Class _DummyOutputManager

experiments/tests/test_strict_daily_simulation.py:11–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11class _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
36def test_case_simulation_uses_only_same_day_papers(monkeypatch, tmp_path):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected