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

Function test_backfill_handles_wiki_only_database

tests/test_wiki_store.py:303–312  ·  view source on GitHub ↗
(monkeypatch, tmp_path)

Source from the content-addressed store, hash-verified

301
302
303def 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
315def test_monthly_export_writes_obsidian_report_and_topic_index(monkeypatch, tmp_path):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected