"""Explicit r71b preseal CLI contract."""

from __future__ import annotations

from pathlib import Path

from scripts.nutricoach_v150_r71b_preseal_arguments import parse_preseal_arguments


def test_preseal_arguments_require_all_three_explicit_maintenance_values() -> None:
    arguments = parse_preseal_arguments((
        "/tmp/candidate", "/tmp/hermes.whl", "/tmp/profile.whl",
        "--maintenance-kst-day", "2026-09-01",
        "--maintenance-not-before", "2026-09-01T16:00:00+09:00",
        "--maintenance-expires-at", "2026-09-01T16:10:00+09:00",
    ))

    assert arguments.candidate_root == Path("/tmp/candidate")
    assert arguments.window.kst_day.isoformat() == "2026-09-01"
