test_q2_ok_cli_performance.py python
20 lines 661 B
Raw
sha256:8461d44b77376fbf06fa7c3e085d309e3010fd8d5886d63c63e69ce118811ad4 docs: record AFF-b feature-tip SHAs after AFF-b-ISR commit. Human 3 days ago
1 """Performance tests for Track Q / Q2b OK CLI entrypoint (§Q2A.10)."""
2
3 from __future__ import annotations
4
5 import time
6 from pathlib import Path
7
8 from tests.support import run_cli, run_shim, seed_git_repo, write_config
9
10
11 def test_ok_shim_status_json_within_existing_budget(tmp_path: Path) -> None:
12 seed_git_repo(tmp_path)
13 write_config(tmp_path, "config-git-only.yaml")
14 run_cli(["init", "--regime", "git-only", "--non-interactive", "--force"], cwd=tmp_path)
15
16 start = time.monotonic()
17 result = run_shim("ok", ["status", "--json"], cwd=tmp_path)
18 elapsed = time.monotonic() - start
19 assert result.exit_code == 0
20 assert elapsed < 1.0
File History 1 commit
sha256:8461d44b77376fbf06fa7c3e085d309e3010fd8d5886d63c63e69ce118811ad4 docs: record AFF-b feature-tip SHAs after AFF-b-ISR commit. Human 3 days ago