From 5ecb10411f41761ba6ccf5b923e58ebb3107fa31 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Sat, 4 Oct 2025 20:36:23 +0800 Subject: [PATCH] Update compression level error message in test Adjusted the expected error message in the test for invalid compression level to match the new format, specifying that the value must be an integer between 1 and 22. --- tests/cli/test_cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/cli/test_cli.py b/tests/cli/test_cli.py index 31c3e88..c1955f5 100644 --- a/tests/cli/test_cli.py +++ b/tests/cli/test_cli.py @@ -96,7 +96,8 @@ class TestUtilityFunctions: validate_compression_level("abc") with pytest.raises( - argparse.ArgumentTypeError, match=r"Invalid compression level: '1\\.5'" + argparse.ArgumentTypeError, + match=r"Invalid compression level: '1\.5'\. Must be an integer between 1 and 22\.", ): validate_compression_level("1.5")