From 93a28fe06894e2c036afbc6c0b90ec9c4a1868ba Mon Sep 17 00:00:00 2001 From: Lumi AI Workspace Date: Tue, 7 Jul 2026 01:06:07 +0700 Subject: [PATCH] test: cover batch pack parser --- tests/integration/test_parser_batch_pack.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/integration/test_parser_batch_pack.py diff --git a/tests/integration/test_parser_batch_pack.py b/tests/integration/test_parser_batch_pack.py new file mode 100644 index 00000000..840e363a --- /dev/null +++ b/tests/integration/test_parser_batch_pack.py @@ -0,0 +1,20 @@ +from __future__ import annotations + +from openamp_foundry.cli.main import build_parser + + +def test_batch_pack_parser_defaults_are_stable(): + parser = build_parser() + args = parser.parse_args([ + "batch-pack", + "--ranked", + "ranked.jsonl", + "--out-json", + "batch.json", + ]) + + assert args.command == "batch-pack" + assert args.ranked == "ranked.jsonl" + assert args.out_json == "batch.json" + assert args.out_md is None + assert args.diversity_threshold == 0.80