From 9bb163c79524d7f93762c581beac8e3dadddce8d Mon Sep 17 00:00:00 2001 From: Lumi AI Workspace Date: Tue, 7 Jul 2026 01:09:16 +0700 Subject: [PATCH] test: cover policy version parser --- .../test_parser_validate_policy_version.py | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/integration/test_parser_validate_policy_version.py diff --git a/tests/integration/test_parser_validate_policy_version.py b/tests/integration/test_parser_validate_policy_version.py new file mode 100644 index 00000000..39f11b73 --- /dev/null +++ b/tests/integration/test_parser_validate_policy_version.py @@ -0,0 +1,20 @@ +from __future__ import annotations + +from openamp_foundry.cli.main import build_parser + + +def test_validate_policy_version_parser_defaults_are_stable(): + parser = build_parser() + args = parser.parse_args([ + "validate-policy-version", + "--current-policy", + "current.yaml", + "--previous-policy", + "previous.yaml", + ]) + + assert args.command == "validate-policy-version" + assert args.current_policy == "current.yaml" + assert args.previous_policy == "previous.yaml" + assert args.decision_log_dir is None + assert args.today is None