feat: complete production workflow migration
This commit is contained in:
@@ -5,7 +5,7 @@ import json
|
||||
from pathlib import Path
|
||||
|
||||
from gyxx_flow.acceptance import build_acceptance_report, parse_plan_checklist
|
||||
from gyxx_flow.cli import EXIT_ACCEPTANCE_INCOMPLETE, main
|
||||
from gyxx_flow.cli import EXIT_SUCCESS, main
|
||||
from gyxx_flow.core.config import Settings
|
||||
from gyxx_flow.diagnostics import run_doctor
|
||||
|
||||
@@ -52,11 +52,14 @@ def test_acceptance_report_is_machine_readable_and_tracks_real_evidence() -> Non
|
||||
payload = report.as_dict()
|
||||
|
||||
assert payload["schema_version"] == 1
|
||||
assert payload["summary"]["total"] > payload["summary"]["completed"]
|
||||
assert payload["checks"]["catalog_21_tasks"] is True
|
||||
assert payload["checks"]["baseline_21_tasks"] is True
|
||||
assert payload["summary"]["total"] == payload["summary"]["completed"]
|
||||
assert payload["checks"]["catalog_22_tasks"] is True
|
||||
assert payload["checks"]["scheduled_graphs_explicit"] is True
|
||||
assert payload["checks"]["python_scheduler_only"] is True
|
||||
assert payload["checks"]["runtime_service_policy"] is True
|
||||
assert payload["checks"]["public_command_registry_complete"] is True
|
||||
assert payload["checks"]["secret_scan_clean"] is True
|
||||
assert report.is_complete is False
|
||||
assert report.is_complete is True
|
||||
|
||||
|
||||
def test_cli_doctor_and_acceptance_status_return_truthful_exit_codes(tmp_path: Path) -> None:
|
||||
@@ -72,6 +75,5 @@ def test_cli_doctor_and_acceptance_status_return_truthful_exit_codes(tmp_path: P
|
||||
settings=Settings(project_root=PROJECT_ROOT, data_root=PROJECT_ROOT / "var"),
|
||||
stdout=acceptance_output,
|
||||
)
|
||||
assert exit_code == EXIT_ACCEPTANCE_INCOMPLETE
|
||||
assert json.loads(acceptance_output.getvalue())["is_complete"] is False
|
||||
|
||||
assert exit_code == EXIT_SUCCESS
|
||||
assert json.loads(acceptance_output.getvalue())["is_complete"] is True
|
||||
|
||||
Reference in New Issue
Block a user