From be79e2b43c478bf24ec2e07ef822ab465b119616 Mon Sep 17 00:00:00 2001 From: Lumi AI Workspace Date: Tue, 7 Jul 2026 01:07:35 +0700 Subject: [PATCH] test: cover recalibration gate parser --- .../test_parser_recalibration_gate.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/integration/test_parser_recalibration_gate.py diff --git a/tests/integration/test_parser_recalibration_gate.py b/tests/integration/test_parser_recalibration_gate.py new file mode 100644 index 00000000..3397c4a8 --- /dev/null +++ b/tests/integration/test_parser_recalibration_gate.py @@ -0,0 +1,22 @@ +from __future__ import annotations + +from openamp_foundry.cli.main import build_parser + + +def test_recalibration_gate_parser_defaults_are_stable(): + parser = build_parser() + args = parser.parse_args([ + "recalibration-gate", + "--intake-report", + "intake.json", + ]) + + assert args.command == "recalibration-gate" + assert args.intake_report == "intake.json" + assert args.policy == "configs/recalibration_policy.yaml" + assert args.intake_report_date is None + assert args.previous_recalibration_at is None + assert args.weight_l1_distance is None + assert args.project_root is None + assert args.out_json is None + assert args.out_md is None