Skip to content

Commit a868811

Browse files
authored
test: cover batch pack parser
1 parent c09fc49 commit a868811

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from __future__ import annotations
2+
3+
from openamp_foundry.cli.main import build_parser
4+
5+
6+
def test_batch_pack_parser_defaults_are_stable():
7+
parser = build_parser()
8+
args = parser.parse_args([
9+
"batch-pack",
10+
"--ranked",
11+
"ranked.jsonl",
12+
"--out-json",
13+
"batch.json",
14+
])
15+
16+
assert args.command == "batch-pack"
17+
assert args.ranked == "ranked.jsonl"
18+
assert args.out_json == "batch.json"
19+
assert args.out_md is None
20+
assert args.diversity_threshold == 0.80

0 commit comments

Comments
 (0)