test_q2_ok_cli_stress.py
python
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1
docs: MuseHub-first before ISR #74 — staging solidify NEXT
Human
1 day ago
| 1 | """Stress tests for Track Q / Q2b OK CLI entrypoint (§Q2A.10).""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | from pathlib import Path |
| 6 | |
| 7 | from tests.support import OVERSEER_DEPRECATION_LINE, run_cli, run_shim, seed_git_repo, write_config |
| 8 | |
| 9 | |
| 10 | def test_overseer_shim_deprecation_is_one_line_per_process(tmp_path: Path) -> None: |
| 11 | seed_git_repo(tmp_path) |
| 12 | write_config(tmp_path, "config-git-only.yaml") |
| 13 | run_cli(["init", "--regime", "git-only", "--non-interactive", "--force"], cwd=tmp_path) |
| 14 | |
| 15 | for _ in range(20): |
| 16 | result = run_shim("overseer", ["status"], cwd=tmp_path) |
| 17 | assert result.exit_code == 0 |
| 18 | assert result.stderr == OVERSEER_DEPRECATION_LINE |
| 19 | shim_temps = list(tmp_path.rglob("*.overseer.tmp")) |
| 20 | assert shim_temps == [] |
File History
1 commit
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1
docs: MuseHub-first before ISR #74 — staging solidify NEXT
Human
1 day ago