Fix packaged project archive command
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-17 14:24:13 +02:00
parent 78a5f0b0b2
commit dbc28c8916
2 changed files with 25 additions and 0 deletions
@@ -2,6 +2,7 @@ from __future__ import annotations
import importlib.util
from pathlib import Path
import subprocess
import sys
from types import SimpleNamespace
from uuid import uuid4
@@ -132,6 +133,21 @@ def test_cleanup_script_is_packaged_and_readiness_checked() -> None:
assert "py_compile scripts/archive_technical_projects.py" in readiness
def test_cleanup_script_can_start_as_a_direct_operator_command() -> None:
result = subprocess.run(
[sys.executable, str(ROOT / "scripts/archive_technical_projects.py"), "--help"],
cwd=ROOT,
capture_output=True,
check=False,
text=True,
timeout=20,
)
assert result.returncode == 0, result.stderr
assert "--apply" in result.stdout
assert "--show-names" in result.stdout
def test_frontend_lifecycle_and_component_boundaries_are_wired() -> None:
app_source = (ROOT / "frontend/src/App.tsx").read_text(encoding="utf-8")
project_panel = (ROOT / "frontend/src/components/project/ProjectPanel.tsx").read_text(encoding="utf-8")