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

Function _use_tmp_wiki

tests/test_wiki_store.py:20–27  ·  view source on GitHub ↗
(monkeypatch, tmp_path: Path)

Source from the content-addressed store, hash-verified

18
19
20def _use_tmp_wiki(monkeypatch, tmp_path: Path) -> None:
21 monkeypatch.setattr(db_ops, "DB_PATH", tmp_path / "paperflow.db")
22 monkeypatch.setenv("PAPERFLOW_WIKI_DIR", str(tmp_path / "wiki"))
23 monkeypatch.setenv("PAPERFLOW_ROLES_PATH", str(tmp_path / "roles.json"))
24 monkeypatch.setenv("PAPERFLOW_LLM_PROVIDER", "mock")
25 monkeypatch.setenv("PAPERFLOW_EMBED_PROVIDER", "hash")
26 db_ops.init_db()
27 wiki_db.init_wiki_schema()
28
29
30def test_wiki_store_upserts_lists_searches_and_writes_mirror(monkeypatch, tmp_path):

Calls

no outgoing calls

Tested by

no test coverage detected