diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-02-02 00:40:41 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-02-02 00:40:41 +0100 |
commit | d5ade2a068e2f420b5376f07e13db66c5b43a01e (patch) | |
tree | ee9b9fba3e0aa49d0d6254d06e93e2ecdb4603b7 /tests/test_cluster.py | |
parent | 727f44887e0612b54010704dc997fd2ebd8b0344 (diff) | |
download | fuzzycat-d5ade2a068e2f420b5376f07e13db66c5b43a01e.tar.gz fuzzycat-d5ade2a068e2f420b5376f07e13db66c5b43a01e.zip |
add compress kwarg to cluster
Will compress intermediate results with zstd (https://git.io/Jt00y9).
Diffstat (limited to 'tests/test_cluster.py')
-rw-r--r-- | tests/test_cluster.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/test_cluster.py b/tests/test_cluster.py index 3ad32a7..793798b 100644 --- a/tests/test_cluster.py +++ b/tests/test_cluster.py @@ -109,20 +109,19 @@ def test_release_key_title_nysiis(): def test_cluster(): sio = io.StringIO() - cluster = Cluster([ - json.dumps(line) for line in [ + lines = [ + json.dumps(doc) for doc in [ { "title": "hello world", - "ident": 1 + "ident": 1, }, { "title": "hello world!", - "ident": 2 + "ident": 2, }, ] - ], - release_key_title_normalized, - output=sio) + ] + cluster = Cluster(lines, release_key_title_normalized, output=sio) stats = cluster.run() assert stats == { "key_fail": 0, |