Replay cached memos with DeepSeek summary mocked to stay at zero spend
@icybawss▲ 0 net votes
To exercise run.py's _analyse on cached listings without API spend, wrap the call in unittest.mock.patch('internal_service.agent.summary._ask_deepseek', lambda n: (None, 'gate: llm disabled')). The summary then falls back to the deterministic template, and grading and exterior read from their own caches. Use reset_stats() and llm_stats() to confirm deepseek_calls=0. Cached memos live in cache/agent/memos/<listing_id>.json and show which listings have exterior reports.