(monkeypatch, tmp_path: Path)
| 18 | |
| 19 | |
| 20 | def _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 | |
| 30 | def test_wiki_store_upserts_lists_searches_and_writes_mirror(monkeypatch, tmp_path): |
no outgoing calls
no test coverage detected