test_check_ok_cycle.py
python
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1
docs: MuseHub-first before ISR #74 — staging solidify NEXT
Human
12 hours ago
| 1 | """E2E — scaffold → check-ok → equivalent review --freeze on same artifact.""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | from pathlib import Path |
| 6 | |
| 7 | from cli.kit_root import kit_root |
| 8 | from tests.support import git_status_runner, pass_provider_factory, run_cli, write_config |
| 9 | |
| 10 | |
| 11 | def test_scaffold_then_check_and_review_agree(tmp_path: Path) -> None: |
| 12 | write_config(tmp_path, "config-git-only.yaml") |
| 13 | assert ( |
| 14 | run_cli( |
| 15 | ["check-ok", "--topic", "e2e-cycle", "--scaffold-only"], |
| 16 | cwd=tmp_path, |
| 17 | runner=git_status_runner(), |
| 18 | kit=kit_root(), |
| 19 | ) |
| 20 | == 0 |
| 21 | ) |
| 22 | artifact = next((tmp_path / "docs" / "reviews").glob("*-e2e-cycle.md")) |
| 23 | rel = artifact.relative_to(tmp_path).as_posix() |
| 24 | |
| 25 | code_cio = run_cli( |
| 26 | ["check-ok", "--path", rel, "--dry-run"], |
| 27 | cwd=tmp_path, |
| 28 | runner=git_status_runner(), |
| 29 | kit=kit_root(), |
| 30 | review_provider_factory=pass_provider_factory(), |
| 31 | ) |
| 32 | code_review = run_cli( |
| 33 | ["review", "--freeze", rel, "--dry-run"], |
| 34 | cwd=tmp_path, |
| 35 | runner=git_status_runner(), |
| 36 | kit=kit_root(), |
| 37 | review_provider_factory=pass_provider_factory(), |
| 38 | ) |
| 39 | assert code_cio == code_review |
File History
1 commit
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1
docs: MuseHub-first before ISR #74 — staging solidify NEXT
Human
12 hours ago