test_full_install_cycle.py python
42 lines 1.1 KB
Raw
sha256:4671b7f787ddbe63ced31c895b688c77ab495653b65a730b423329f26b3c1439 feat: K1-P1 complete — agent provenance, build-verification… Sonnet 4.6 patch 57 days ago
1 """End-to-end install lifecycle test."""
2
3 from __future__ import annotations
4
5 from pathlib import Path
6
7 from cli.version_lock import read_version_lock
8 from tests.support import git_status_runner, run_cli
9
10
11 def test_full_install_cycle(tmp_path: Path) -> None:
12 assert run_cli(
13 ["init", "--regime", "git-only", "--non-interactive"],
14 cwd=tmp_path,
15 runner=git_status_runner(),
16 ) == 0
17
18 handover = tmp_path / "docs" / "OVERSEER-HANDOVER.md"
19 handover.write_text(handover.read_text(encoding="utf-8") + "\n# local edit\n", encoding="utf-8")
20
21 assert run_cli(
22 ["status", "--check-footprint", "--exit-code"],
23 cwd=tmp_path,
24 runner=git_status_runner(),
25 ) == 6
26
27 assert run_cli(["sync", "-y"], cwd=tmp_path, runner=git_status_runner()) == 4
28
29 assert run_cli(
30 ["sync", "-y", "--force"],
31 cwd=tmp_path,
32 runner=git_status_runner(),
33 ) == 0
34
35 lock = read_version_lock(tmp_path / ".overseer" / "version.lock")
36 assert lock.kit_version == "0.1.0"
37
38 assert run_cli(
39 ["status", "--check-footprint"],
40 cwd=tmp_path,
41 runner=git_status_runner(),
42 ) == 0
File History 1 commit
sha256:4671b7f787ddbe63ced31c895b688c77ab495653b65a730b423329f26b3c1439 feat: K1-P1 complete — agent provenance, build-verification… Sonnet 4.6 patch 57 days ago