"""Smoke tests for the staged Accountable Record pipeline."""

import pytest

from accountable_record.cli import main
from accountable_record.pipeline.stages import valid_stage_targets


def test_cli_help_exits_successfully() -> None:
    """The CLI can render help without failing."""
    with pytest.raises(SystemExit) as exc_info:
        main(["--help"])

    assert exc_info.value.code == 0


def test_valid_stage_targets_include_full_pipeline() -> None:
    """The staged CLI exposes every public pipeline target."""
    assert valid_stage_targets() == (
        "s010",
        "s020",
        "s030",
        "s040",
        "s050",
        "s060",
        "s070",
        "s080",
        "s090",
        "all",
    )
