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:
1 parent
2cb2b9eaa7
commit
5ecb10411f
1 file changed
+2
-1
@@ -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")
|
||||
|
||||
|
||||
Reference in new issue
Block a user