diff --git a/test/test_release.py b/test/test_release.py index d9a2cb77..acdb0705 100644 --- a/test/test_release.py +++ b/test/test_release.py @@ -239,7 +239,7 @@ def test_release_version_validation_on(self): sub_parser = subparsers.add_parser("package") sub_parser.add_argument("release_version") sub_parser.add_argument("--no-validation", action="store_true") - args = parser.parse_args(["v1"]) + args = parser.parse_args(["package", "v1"]) with self.assertRaises(ValueError): Parameters.validate_args(args) @@ -251,7 +251,7 @@ def test_release_version_validation_off(self): sub_parser = subparsers.add_parser("package") sub_parser.add_argument("release_version") sub_parser.add_argument("--no-validation", action="store_true") - args = parser.parse_args([".", "--no-validation"]) + args = parser.parse_args(["package", "v1", "--no-validation"]) Parameters.validate_args(args)