(monkeypatch, tmp_path)
| 301 | |
| 302 | |
| 303 | def test_backfill_handles_wiki_only_database(monkeypatch, tmp_path): |
| 304 | monkeypatch.setattr(db_ops, "DB_PATH", tmp_path / "paperflow.db") |
| 305 | monkeypatch.setenv("PAPERFLOW_WIKI_DIR", str(tmp_path / "wiki")) |
| 306 | wiki_db.init_wiki_schema() |
| 307 | |
| 308 | assert backfill_ingest.backfill_all() == {} |
| 309 | result = backfill_ingest.backfill_user("user_alice") |
| 310 | assert result["pushed"] == 0 |
| 311 | assert result["feedback"] == 0 |
| 312 | assert result["missing_tables"] == ["behavior_logs", "papers"] |
| 313 | |
| 314 | |
| 315 | def test_monthly_export_writes_obsidian_report_and_topic_index(monkeypatch, tmp_path): |
nothing calls this directly
no outgoing calls
no test coverage detected