test_status_bounded.py
python
sha256:c07f2f34a0db9f43fe866f157d1935322008545ff8940c06c7c921eb219c55ab
NXP-b DONE: independent BV-r2 pass + ISR (SD-17)
Human
minor
⚠ breaking
17 hours ago
| 1 | """Performance tests for bounded status execution.""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | import time |
| 6 | from pathlib import Path |
| 7 | |
| 8 | from tests.support import git_status_runner, run_cli |
| 9 | |
| 10 | |
| 11 | def test_status_completes_within_budget(tmp_path: Path) -> None: |
| 12 | run_cli(["init", "--regime", "git-only", "--non-interactive"], cwd=tmp_path) |
| 13 | runner = git_status_runner() |
| 14 | start = time.monotonic() |
| 15 | code = run_cli(["status"], cwd=tmp_path, runner=runner) |
| 16 | elapsed = time.monotonic() - start |
| 17 | assert code == 0 |
| 18 | assert elapsed < 1.0 |
| 19 | status_calls = [c for c in runner.calls if "status" in c[0]] |
| 20 | assert len(status_calls) <= 2 |
File History
1 commit
sha256:c07f2f34a0db9f43fe866f157d1935322008545ff8940c06c7c921eb219c55ab
NXP-b DONE: independent BV-r2 pass + ISR (SD-17)
Human
minor
⚠
17 hours ago