test_pilot_large_preserved_docs.py python
37 lines 1.1 KB
Raw
sha256:106ef9e12cca7f3be3ffb2a6bd3abfa76f032dce453c9e5010d732a8d86f2e14 Reconcile reviewed credential compatibility 32254cd939885d9… Human patch 8 days ago
1 """Stress: large preserved living docs under migrate (§K6.10)."""
2
3 from __future__ import annotations
4
5 from pathlib import Path
6
7 from tests.support import PILOT, git_status_runner, muse_mirror_status_runner, run_cli, seed_pilot_tree
8
9
10 def test_large_preserved_docs_migrate_status_bounded(tmp_path: Path) -> None:
11 big = "# large\n" + ("x" * 200_000) + "\n"
12 seed_pilot_tree(
13 tmp_path,
14 handover_rel="docs/OVERSEER-HANDOVER.md",
15 handover_text=big,
16 roadmap_rel="docs/ROADMAP.md",
17 roadmap_text=big,
18 )
19 runner = muse_mirror_status_runner(tmp_path)
20 assert (
21 run_cli(
22 [
23 "init",
24 "--migrate",
25 "--from-config",
26 str(PILOT / "config-scooling.yaml"),
27 "--non-interactive",
28 ],
29 cwd=tmp_path,
30 runner=runner,
31 )
32 == 0
33 )
34 assert run_cli(["status", "--check-footprint"], cwd=tmp_path, runner=runner) == 0
35 assert (
36 tmp_path / "docs/OVERSEER-HANDOVER.md"
37 ).read_text(encoding="utf-8") == big
File History 2 commits
sha256:106ef9e12cca7f3be3ffb2a6bd3abfa76f032dce453c9e5010d732a8d86f2e14 Reconcile reviewed credential compatibility 32254cd939885d9… Human patch 8 days ago
sha256:c87cf2c2f03da507f66f93922cb339a2cbebb33ad6372a6039032fb09a20da12 Reconcile reviewed Overseer recovery d47291d5d9030de5ebef71… Human minor ⚠ 8 days ago