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.
This commit is contained in:
xixu-me committed 2025-10-04 20:36:23 +08:00
1 parent 2cb2b9eaa7
commit 5ecb10411f
1 file changed
+2 -1
+2 -1
View File
@@ -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")