@@ -24,7 +24,6 @@ def client(decoded_r):
24
24
return decoded_r
25
25
26
26
27
- @pytest .mark .redismod
28
27
def test_create (client ):
29
28
"""Test CREATE/RESERVE calls"""
30
29
assert client .bf ().create ("bloom" , 0.01 , 1000 )
@@ -39,7 +38,6 @@ def test_create(client):
39
38
assert client .topk ().reserve ("topk" , 5 , 100 , 5 , 0.9 )
40
39
41
40
42
- @pytest .mark .redismod
43
41
def test_bf_reserve (client ):
44
42
"""Testing BF.RESERVE"""
45
43
assert client .bf ().reserve ("bloom" , 0.01 , 1000 )
@@ -54,13 +52,11 @@ def test_bf_reserve(client):
54
52
assert client .topk ().reserve ("topk" , 5 , 100 , 5 , 0.9 )
55
53
56
54
57
- @pytest .mark .redismod
58
55
@pytest .mark .experimental
59
56
def test_tdigest_create (client ):
60
57
assert client .tdigest ().create ("tDigest" , 100 )
61
58
62
59
63
- @pytest .mark .redismod
64
60
def test_bf_add (client ):
65
61
assert client .bf ().create ("bloom" , 0.01 , 1000 )
66
62
assert 1 == client .bf ().add ("bloom" , "foo" )
@@ -73,7 +69,6 @@ def test_bf_add(client):
73
69
assert [1 , 0 ] == intlist (client .bf ().mexists ("bloom" , "foo" , "noexist" ))
74
70
75
71
76
- @pytest .mark .redismod
77
72
def test_bf_insert (client ):
78
73
assert client .bf ().create ("bloom" , 0.01 , 1000 )
79
74
assert [1 ] == intlist (client .bf ().insert ("bloom" , ["foo" ]))
@@ -104,7 +99,6 @@ def test_bf_insert(client):
104
99
)
105
100
106
101
107
- @pytest .mark .redismod
108
102
def test_bf_scandump_and_loadchunk (client ):
109
103
# Store a filter
110
104
client .bf ().create ("myBloom" , "0.0001" , "1000" )
@@ -156,7 +150,6 @@ def do_verify():
156
150
client .bf ().create ("myBloom" , "0.0001" , "10000000" )
157
151
158
152
159
- @pytest .mark .redismod
160
153
def test_bf_info (client ):
161
154
expansion = 4
162
155
# Store a filter
@@ -188,7 +181,6 @@ def test_bf_info(client):
188
181
assert True
189
182
190
183
191
- @pytest .mark .redismod
192
184
def test_bf_card (client ):
193
185
# return 0 if the key does not exist
194
186
assert client .bf ().card ("not_exist" ) == 0
@@ -203,7 +195,6 @@ def test_bf_card(client):
203
195
client .bf ().card ("setKey" )
204
196
205
197
206
- @pytest .mark .redismod
207
198
def test_cf_add_and_insert (client ):
208
199
assert client .cf ().create ("cuckoo" , 1000 )
209
200
assert client .cf ().add ("cuckoo" , "filter" )
@@ -229,7 +220,6 @@ def test_cf_add_and_insert(client):
229
220
)
230
221
231
222
232
- @pytest .mark .redismod
233
223
def test_cf_exists_and_del (client ):
234
224
assert client .cf ().create ("cuckoo" , 1000 )
235
225
assert client .cf ().add ("cuckoo" , "filter" )
@@ -242,7 +232,6 @@ def test_cf_exists_and_del(client):
242
232
assert 0 == client .cf ().count ("cuckoo" , "filter" )
243
233
244
234
245
- @pytest .mark .redismod
246
235
def test_cms (client ):
247
236
assert client .cms ().initbydim ("dim" , 1000 , 5 )
248
237
assert client .cms ().initbyprob ("prob" , 0.01 , 0.01 )
@@ -258,7 +247,6 @@ def test_cms(client):
258
247
assert 25 == info ["count" ]
259
248
260
249
261
- @pytest .mark .redismod
262
250
@pytest .mark .onlynoncluster
263
251
def test_cms_merge (client ):
264
252
assert client .cms ().initbydim ("A" , 1000 , 5 )
@@ -276,7 +264,6 @@ def test_cms_merge(client):
276
264
assert [16 , 15 , 21 ] == client .cms ().query ("C" , "foo" , "bar" , "baz" )
277
265
278
266
279
- @pytest .mark .redismod
280
267
def test_topk (client ):
281
268
# test list with empty buckets
282
269
assert client .topk ().reserve ("topk" , 3 , 50 , 4 , 0.9 )
@@ -356,7 +343,6 @@ def test_topk(client):
356
343
assert 0.9 == round (float (info ["decay" ]), 1 )
357
344
358
345
359
- @pytest .mark .redismod
360
346
def test_topk_incrby (client ):
361
347
client .flushdb ()
362
348
assert client .topk ().reserve ("topk" , 3 , 10 , 3 , 1 )
@@ -370,7 +356,6 @@ def test_topk_incrby(client):
370
356
)
371
357
372
358
373
- @pytest .mark .redismod
374
359
@pytest .mark .experimental
375
360
def test_tdigest_reset (client ):
376
361
assert client .tdigest ().create ("tDigest" , 10 )
@@ -387,8 +372,7 @@ def test_tdigest_reset(client):
387
372
)
388
373
389
374
390
- @pytest .mark .redismod
391
- @pytest .mark .experimental
375
+ @pytest .mark .onlynoncluster
392
376
def test_tdigest_merge (client ):
393
377
assert client .tdigest ().create ("to-tDigest" , 10 )
394
378
assert client .tdigest ().create ("from-tDigest" , 10 )
@@ -415,7 +399,6 @@ def test_tdigest_merge(client):
415
399
assert 4.0 == client .tdigest ().max ("to-tDigest" )
416
400
417
401
418
- @pytest .mark .redismod
419
402
@pytest .mark .experimental
420
403
def test_tdigest_min_and_max (client ):
421
404
assert client .tdigest ().create ("tDigest" , 100 )
@@ -426,7 +409,6 @@ def test_tdigest_min_and_max(client):
426
409
assert 1 == client .tdigest ().min ("tDigest" )
427
410
428
411
429
- @pytest .mark .redismod
430
412
@pytest .mark .experimental
431
413
@skip_ifmodversion_lt ("2.4.0" , "bf" )
432
414
def test_tdigest_quantile (client ):
@@ -448,7 +430,6 @@ def test_tdigest_quantile(client):
448
430
assert [3.0 , 5.0 ] == client .tdigest ().quantile ("t-digest" , 0.5 , 0.8 )
449
431
450
432
451
- @pytest .mark .redismod
452
433
@pytest .mark .experimental
453
434
def test_tdigest_cdf (client ):
454
435
assert client .tdigest ().create ("tDigest" , 100 )
@@ -460,7 +441,6 @@ def test_tdigest_cdf(client):
460
441
assert [0.1 , 0.9 ] == [round (x , 1 ) for x in res ]
461
442
462
443
463
- @pytest .mark .redismod
464
444
@pytest .mark .experimental
465
445
@skip_ifmodversion_lt ("2.4.0" , "bf" )
466
446
def test_tdigest_trimmed_mean (client ):
@@ -471,7 +451,6 @@ def test_tdigest_trimmed_mean(client):
471
451
assert 4.5 == client .tdigest ().trimmed_mean ("tDigest" , 0.4 , 0.5 )
472
452
473
453
474
- @pytest .mark .redismod
475
454
@pytest .mark .experimental
476
455
def test_tdigest_rank (client ):
477
456
assert client .tdigest ().create ("t-digest" , 500 )
@@ -482,7 +461,6 @@ def test_tdigest_rank(client):
482
461
assert [- 1 , 20 , 9 ] == client .tdigest ().rank ("t-digest" , - 20 , 20 , 9 )
483
462
484
463
485
- @pytest .mark .redismod
486
464
@pytest .mark .experimental
487
465
def test_tdigest_revrank (client ):
488
466
assert client .tdigest ().create ("t-digest" , 500 )
@@ -492,7 +470,6 @@ def test_tdigest_revrank(client):
492
470
assert [- 1 , 19 , 9 ] == client .tdigest ().revrank ("t-digest" , 21 , 0 , 10 )
493
471
494
472
495
- @pytest .mark .redismod
496
473
@pytest .mark .experimental
497
474
def test_tdigest_byrank (client ):
498
475
assert client .tdigest ().create ("t-digest" , 500 )
@@ -504,7 +481,6 @@ def test_tdigest_byrank(client):
504
481
client .tdigest ().byrank ("t-digest" , - 1 )[0 ]
505
482
506
483
507
- @pytest .mark .redismod
508
484
@pytest .mark .experimental
509
485
def test_tdigest_byrevrank (client ):
510
486
assert client .tdigest ().create ("t-digest" , 500 )
@@ -516,8 +492,7 @@ def test_tdigest_byrevrank(client):
516
492
client .tdigest ().byrevrank ("t-digest" , - 1 )[0 ]
517
493
518
494
519
- # @pytest.mark.redismod
520
- # def test_pipeline(client):
495
+ # # def test_pipeline(client):
521
496
# pipeline = client.bf().pipeline()
522
497
# assert not client.bf().execute_command("get pipeline")
523
498
#
0 commit comments