|
@@ -7,7 +7,7 @@ import msgpack
|
|
|
|
|
|
from ..helpers import adjust_patterns, exclude_path, Location, format_timedelta, ExcludePattern, make_path_safe, \
|
|
from ..helpers import adjust_patterns, exclude_path, Location, format_timedelta, ExcludePattern, make_path_safe, \
|
|
prune_within, prune_split, \
|
|
prune_within, prune_split, \
|
|
- StableDict, int_to_bigint, bigint_to_int, parse_timestamp, CompressionSpec
|
|
|
|
|
|
+ StableDict, int_to_bigint, bigint_to_int, parse_timestamp, CompressionSpec, ChunkerParams
|
|
from . import BaseTestCase
|
|
from . import BaseTestCase
|
|
|
|
|
|
|
|
|
|
@@ -129,6 +129,13 @@ def test_compression_specs():
|
|
CompressionSpec('invalid')
|
|
CompressionSpec('invalid')
|
|
|
|
|
|
|
|
|
|
|
|
+def test_chunkerparams():
|
|
|
|
+ assert ChunkerParams('19,23,21,4095') == (19, 23, 21, 4095)
|
|
|
|
+ assert ChunkerParams('10,23,16,4095') == (10, 23, 16, 4095)
|
|
|
|
+ with pytest.raises(ValueError):
|
|
|
|
+ ChunkerParams('19,24,21,4095')
|
|
|
|
+
|
|
|
|
+
|
|
class MakePathSafeTestCase(BaseTestCase):
|
|
class MakePathSafeTestCase(BaseTestCase):
|
|
|
|
|
|
def test(self):
|
|
def test(self):
|