@@ -24,7 +24,6 @@ def client(decoded_r):
2424 return decoded_r
2525
2626
27- @pytest .mark .redismod
2827def test_create (client ):
2928 """Test CREATE/RESERVE calls"""
3029 assert client .bf ().create ("bloom" , 0.01 , 1000 )
@@ -39,7 +38,6 @@ def test_create(client):
3938 assert client .topk ().reserve ("topk" , 5 , 100 , 5 , 0.9 )
4039
4140
42- @pytest .mark .redismod
4341def test_bf_reserve (client ):
4442 """Testing BF.RESERVE"""
4543 assert client .bf ().reserve ("bloom" , 0.01 , 1000 )
@@ -54,13 +52,11 @@ def test_bf_reserve(client):
5452 assert client .topk ().reserve ("topk" , 5 , 100 , 5 , 0.9 )
5553
5654
57- @pytest .mark .redismod
5855@pytest .mark .experimental
5956def test_tdigest_create (client ):
6057 assert client .tdigest ().create ("tDigest" , 100 )
6158
6259
63- @pytest .mark .redismod
6460def test_bf_add (client ):
6561 assert client .bf ().create ("bloom" , 0.01 , 1000 )
6662 assert 1 == client .bf ().add ("bloom" , "foo" )
@@ -73,7 +69,6 @@ def test_bf_add(client):
7369 assert [1 , 0 ] == intlist (client .bf ().mexists ("bloom" , "foo" , "noexist" ))
7470
7571
76- @pytest .mark .redismod
7772def test_bf_insert (client ):
7873 assert client .bf ().create ("bloom" , 0.01 , 1000 )
7974 assert [1 ] == intlist (client .bf ().insert ("bloom" , ["foo" ]))
@@ -104,7 +99,6 @@ def test_bf_insert(client):
10499 )
105100
106101
107- @pytest .mark .redismod
108102def test_bf_scandump_and_loadchunk (client ):
109103 # Store a filter
110104 client .bf ().create ("myBloom" , "0.0001" , "1000" )
@@ -156,7 +150,6 @@ def do_verify():
156150 client .bf ().create ("myBloom" , "0.0001" , "10000000" )
157151
158152
159- @pytest .mark .redismod
160153def test_bf_info (client ):
161154 expansion = 4
162155 # Store a filter
@@ -188,7 +181,6 @@ def test_bf_info(client):
188181 assert True
189182
190183
191- @pytest .mark .redismod
192184def test_bf_card (client ):
193185 # return 0 if the key does not exist
194186 assert client .bf ().card ("not_exist" ) == 0
@@ -203,7 +195,6 @@ def test_bf_card(client):
203195 client .bf ().card ("setKey" )
204196
205197
206- @pytest .mark .redismod
207198def test_cf_add_and_insert (client ):
208199 assert client .cf ().create ("cuckoo" , 1000 )
209200 assert client .cf ().add ("cuckoo" , "filter" )
@@ -229,7 +220,6 @@ def test_cf_add_and_insert(client):
229220 )
230221
231222
232- @pytest .mark .redismod
233223def test_cf_exists_and_del (client ):
234224 assert client .cf ().create ("cuckoo" , 1000 )
235225 assert client .cf ().add ("cuckoo" , "filter" )
@@ -242,7 +232,6 @@ def test_cf_exists_and_del(client):
242232 assert 0 == client .cf ().count ("cuckoo" , "filter" )
243233
244234
245- @pytest .mark .redismod
246235def test_cms (client ):
247236 assert client .cms ().initbydim ("dim" , 1000 , 5 )
248237 assert client .cms ().initbyprob ("prob" , 0.01 , 0.01 )
@@ -258,7 +247,6 @@ def test_cms(client):
258247 assert 25 == info ["count" ]
259248
260249
261- @pytest .mark .redismod
262250@pytest .mark .onlynoncluster
263251def test_cms_merge (client ):
264252 assert client .cms ().initbydim ("A" , 1000 , 5 )
@@ -276,7 +264,6 @@ def test_cms_merge(client):
276264 assert [16 , 15 , 21 ] == client .cms ().query ("C" , "foo" , "bar" , "baz" )
277265
278266
279- @pytest .mark .redismod
280267def test_topk (client ):
281268 # test list with empty buckets
282269 assert client .topk ().reserve ("topk" , 3 , 50 , 4 , 0.9 )
@@ -356,7 +343,6 @@ def test_topk(client):
356343 assert 0.9 == round (float (info ["decay" ]), 1 )
357344
358345
359- @pytest .mark .redismod
360346def test_topk_incrby (client ):
361347 client .flushdb ()
362348 assert client .topk ().reserve ("topk" , 3 , 10 , 3 , 1 )
@@ -370,7 +356,6 @@ def test_topk_incrby(client):
370356 )
371357
372358
373- @pytest .mark .redismod
374359@pytest .mark .experimental
375360def test_tdigest_reset (client ):
376361 assert client .tdigest ().create ("tDigest" , 10 )
@@ -387,8 +372,7 @@ def test_tdigest_reset(client):
387372 )
388373
389374
390- @pytest .mark .redismod
391- @pytest .mark .experimental
375+ @pytest .mark .onlynoncluster
392376def test_tdigest_merge (client ):
393377 assert client .tdigest ().create ("to-tDigest" , 10 )
394378 assert client .tdigest ().create ("from-tDigest" , 10 )
@@ -415,7 +399,6 @@ def test_tdigest_merge(client):
415399 assert 4.0 == client .tdigest ().max ("to-tDigest" )
416400
417401
418- @pytest .mark .redismod
419402@pytest .mark .experimental
420403def test_tdigest_min_and_max (client ):
421404 assert client .tdigest ().create ("tDigest" , 100 )
@@ -426,7 +409,6 @@ def test_tdigest_min_and_max(client):
426409 assert 1 == client .tdigest ().min ("tDigest" )
427410
428411
429- @pytest .mark .redismod
430412@pytest .mark .experimental
431413@skip_ifmodversion_lt ("2.4.0" , "bf" )
432414def test_tdigest_quantile (client ):
@@ -448,7 +430,6 @@ def test_tdigest_quantile(client):
448430 assert [3.0 , 5.0 ] == client .tdigest ().quantile ("t-digest" , 0.5 , 0.8 )
449431
450432
451- @pytest .mark .redismod
452433@pytest .mark .experimental
453434def test_tdigest_cdf (client ):
454435 assert client .tdigest ().create ("tDigest" , 100 )
@@ -460,7 +441,6 @@ def test_tdigest_cdf(client):
460441 assert [0.1 , 0.9 ] == [round (x , 1 ) for x in res ]
461442
462443
463- @pytest .mark .redismod
464444@pytest .mark .experimental
465445@skip_ifmodversion_lt ("2.4.0" , "bf" )
466446def test_tdigest_trimmed_mean (client ):
@@ -471,7 +451,6 @@ def test_tdigest_trimmed_mean(client):
471451 assert 4.5 == client .tdigest ().trimmed_mean ("tDigest" , 0.4 , 0.5 )
472452
473453
474- @pytest .mark .redismod
475454@pytest .mark .experimental
476455def test_tdigest_rank (client ):
477456 assert client .tdigest ().create ("t-digest" , 500 )
@@ -482,7 +461,6 @@ def test_tdigest_rank(client):
482461 assert [- 1 , 20 , 9 ] == client .tdigest ().rank ("t-digest" , - 20 , 20 , 9 )
483462
484463
485- @pytest .mark .redismod
486464@pytest .mark .experimental
487465def test_tdigest_revrank (client ):
488466 assert client .tdigest ().create ("t-digest" , 500 )
@@ -492,7 +470,6 @@ def test_tdigest_revrank(client):
492470 assert [- 1 , 19 , 9 ] == client .tdigest ().revrank ("t-digest" , 21 , 0 , 10 )
493471
494472
495- @pytest .mark .redismod
496473@pytest .mark .experimental
497474def test_tdigest_byrank (client ):
498475 assert client .tdigest ().create ("t-digest" , 500 )
@@ -504,7 +481,6 @@ def test_tdigest_byrank(client):
504481 client .tdigest ().byrank ("t-digest" , - 1 )[0 ]
505482
506483
507- @pytest .mark .redismod
508484@pytest .mark .experimental
509485def test_tdigest_byrevrank (client ):
510486 assert client .tdigest ().create ("t-digest" , 500 )
@@ -516,8 +492,7 @@ def test_tdigest_byrevrank(client):
516492 client .tdigest ().byrevrank ("t-digest" , - 1 )[0 ]
517493
518494
519- # @pytest.mark.redismod
520- # def test_pipeline(client):
495+ # # def test_pipeline(client):
521496# pipeline = client.bf().pipeline()
522497# assert not client.bf().execute_command("get pipeline")
523498#
0 commit comments