test_k8_lanes.py python
23 lines 802 B
Raw
sha256:106ef9e12cca7f3be3ffb2a6bd3abfa76f032dce453c9e5010d732a8d86f2e14 Reconcile reviewed credential compatibility 32254cd939885d9… Human patch 8 days ago
1 """Unit tests for K8 multi-lane living docs."""
2
3 from __future__ import annotations
4
5 from pathlib import Path
6
7 from adapters.config import resolve_lane_docs
8 from cli.docs_paths import living_doc_destinations
9 from tests.support import load_fixture_config
10
11
12 def test_living_doc_destinations_includes_all_lanes(repo_root: Path) -> None:
13 cfg = load_fixture_config(repo_root, "config-two-lane.yaml")
14 dests = living_doc_destinations(cfg)
15 assert "QUEUE_HANDOVER.md" in dests
16 assert "videos/_active/HANDOVER.md" in dests
17 assert "videos/_active/ROADMAP.md" in dests
18
19
20 def test_resolve_lane_active(repo_root: Path) -> None:
21 cfg = load_fixture_config(repo_root, "config-two-lane.yaml")
22 active = resolve_lane_docs(cfg, "active")
23 assert active.roadmap == "videos/_active/ROADMAP.md"
File History 2 commits
sha256:106ef9e12cca7f3be3ffb2a6bd3abfa76f032dce453c9e5010d732a8d86f2e14 Reconcile reviewed credential compatibility 32254cd939885d9… Human patch 8 days ago
sha256:c87cf2c2f03da507f66f93922cb339a2cbebb33ad6372a6039032fb09a20da12 Reconcile reviewed Overseer recovery d47291d5d9030de5ebef71… Human minor ⚠ 8 days ago