1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
import pytest
import lz4.frame as lz4frame
import lz4
@pytest.fixture(
params=[
# (lz4frame.BLOCKSIZE_DEFAULT),
(lz4frame.BLOCKSIZE_MAX64KB),
(lz4frame.BLOCKSIZE_MAX256KB),
(lz4frame.BLOCKSIZE_MAX1MB),
(lz4frame.BLOCKSIZE_MAX4MB),
]
)
def block_size(request):
return request.param
@pytest.fixture(
params=[
(True),
(False),
]
)
def block_linked(request):
return request.param
@pytest.fixture(
params=[
(True),
(False),
]
)
def content_checksum(request):
return request.param
if lz4.library_version_number() >= 10800:
p = [True, False]
else:
p = [False, ]
@pytest.fixture(
params=[
(pp) for pp in p
]
)
def block_checksum(request):
return request.param
compression_levels = [
(lz4frame.COMPRESSIONLEVEL_MIN),
(lz4frame.COMPRESSIONLEVEL_MINHC),
(lz4frame.COMPRESSIONLEVEL_MAX),
]
@pytest.fixture(
params=compression_levels
)
def compression_level(request):
return request.param
@pytest.fixture(
params=[
(True),
(False)
]
)
def auto_flush(request):
return request.param
@pytest.fixture(
params=[
(True),
(False)
]
)
def store_size(request):
return request.param
@pytest.fixture(
params=[
(True),
(False),
]
)
def return_bytearray(request):
return request.param
|