Skip to content

Commit 8d6514c

Browse files
test: check compute_crc
1 parent 46fc0d0 commit 8d6514c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

automated_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ def test_empty(compress):
2525

2626

2727
@pytest.mark.parametrize("compress", (None, "gzip", "br", "zstd"))
28-
def test_full(compress):
28+
@pytest.mark.parametrize("compute_crc", [True, False])
29+
def test_full(compress, compute_crc):
2930
data = {
3031
random.randint(0, 1000000000): bytes([
3132
random.randint(0,255) for __ in range(random.randint(0,50))
3233
]) for _ in range(10000)
3334
}
34-
mbuf = MapBuffer(data, compress=compress)
35+
mbuf = MapBuffer(data, compress=compress, compute_crc=compute_crc)
3536
assert set(data.keys()) == set(mbuf.keys())
3637
assert set(data) == set(mbuf)
3738
assert set(data.values()) == set(( bytes(x) for x in mbuf.values()))

0 commit comments

Comments
 (0)