From 59c3651148889d2febe27546c136dbf08fb3112c Mon Sep 17 00:00:00 2001 From: Lumi AI Workspace Date: Tue, 7 Jul 2026 00:54:30 +0700 Subject: [PATCH] test: cover bench parser --- tests/integration/test_cli_bench_parser.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/integration/test_cli_bench_parser.py diff --git a/tests/integration/test_cli_bench_parser.py b/tests/integration/test_cli_bench_parser.py new file mode 100644 index 00000000..159e0ab1 --- /dev/null +++ b/tests/integration/test_cli_bench_parser.py @@ -0,0 +1,20 @@ +from __future__ import annotations + +from openamp_foundry.cli.main import build_parser + + +def test_bench_leakage_parser_values(): + parser = build_parser() + args = parser.parse_args([ + "bench", + "leakage", + "--candidates", + "candidates.csv", + "--references", + "references.csv", + ]) + + assert args.command == "bench" + assert args.bench_command == "leakage" + assert args.threshold == 0.90 + assert args.out is None