Helper to set up a wiki directory with optional existing concepts.
(self, tmp_path, existing_concepts=None)
| 1667 | """Integration tests for _compile_concepts with the new plan format.""" |
| 1668 | |
| 1669 | def _setup_wiki(self, tmp_path, existing_concepts=None): |
| 1670 | """Helper to set up a wiki directory with optional existing concepts.""" |
| 1671 | wiki = tmp_path / "wiki" |
| 1672 | (wiki / "summaries").mkdir(parents=True) |
| 1673 | (wiki / "concepts").mkdir(parents=True) |
| 1674 | (wiki / "index.md").write_text( |
| 1675 | "# Index\n\n## Documents\n\n## Concepts\n", |
| 1676 | encoding="utf-8", |
| 1677 | ) |
| 1678 | (tmp_path / "raw").mkdir(exist_ok=True) |
| 1679 | (tmp_path / "raw" / "test-doc.pdf").write_bytes(b"fake") |
| 1680 | |
| 1681 | if existing_concepts: |
| 1682 | for name, content in existing_concepts.items(): |
| 1683 | (wiki / "concepts" / f"{name}.md").write_text( |
| 1684 | content, |
| 1685 | encoding="utf-8", |
| 1686 | ) |
| 1687 | |
| 1688 | return wiki |
| 1689 | |
| 1690 | @pytest.mark.asyncio |
| 1691 | async def test_create_and_update_flow(self, tmp_path): |
no outgoing calls
no test coverage detected