@@ -11,7 +11,7 @@ def client(modclient):
11
11
12
12
13
13
@pytest .mark .redismod
14
- def testCreate (client ):
14
+ def test_create (client ):
15
15
assert client .ts ().create (1 )
16
16
assert client .ts ().create (2 , retention_msecs = 5 )
17
17
assert client .ts ().create (3 , labels = {"Redis" : "Labs" })
@@ -28,7 +28,7 @@ def testCreate(client):
28
28
29
29
@pytest .mark .redismod
30
30
@skip_ifmodversion_lt ("1.4.0" , "timeseries" )
31
- def testCreateDuplicatePolicy (client ):
31
+ def test_create_duplicate_policy (client ):
32
32
# Test for duplicate policy
33
33
for duplicate_policy in ["block" , "last" , "first" , "min" , "max" ]:
34
34
ts_name = "time-serie-ooo-{0}" .format (duplicate_policy )
@@ -38,7 +38,7 @@ def testCreateDuplicatePolicy(client):
38
38
39
39
40
40
@pytest .mark .redismod
41
- def testAlter (client ):
41
+ def test_alter (client ):
42
42
assert client .ts ().create (1 )
43
43
assert 0 == client .ts ().info (1 ).retention_msecs
44
44
assert client .ts ().alter (1 , retention_msecs = 10 )
@@ -51,7 +51,7 @@ def testAlter(client):
51
51
52
52
@pytest .mark .redismod
53
53
@skip_ifmodversion_lt ("1.4.0" , "timeseries" )
54
- def testAlterDiplicatePolicy (client ):
54
+ def test_alter_diplicate_policy (client ):
55
55
assert client .ts ().create (1 )
56
56
info = client .ts ().info (1 )
57
57
assert info .duplicate_policy is None
@@ -61,7 +61,7 @@ def testAlterDiplicatePolicy(client):
61
61
62
62
63
63
@pytest .mark .redismod
64
- def testAdd (client ):
64
+ def test_add (client ):
65
65
assert 1 == client .ts ().add (1 , 1 , 1 )
66
66
assert 2 == client .ts ().add (2 , 2 , 3 , retention_msecs = 10 )
67
67
assert 3 == client .ts ().add (3 , 3 , 2 , labels = {"Redis" : "Labs" })
@@ -83,7 +83,7 @@ def testAdd(client):
83
83
84
84
@pytest .mark .redismod
85
85
@skip_ifmodversion_lt ("1.4.0" , "timeseries" )
86
- def testAddDuplicatePolicy (client ):
86
+ def test_add_duplicate_policy (client ):
87
87
88
88
# Test for duplicate policy BLOCK
89
89
assert 1 == client .ts ().add ("time-serie-add-ooo-block" , 1 , 5.0 )
@@ -125,14 +125,14 @@ def testAddDuplicatePolicy(client):
125
125
126
126
127
127
@pytest .mark .redismod
128
- def testMAdd (client ):
128
+ def test_madd (client ):
129
129
client .ts ().create ("a" )
130
130
assert [1 , 2 , 3 ] == \
131
131
client .ts ().madd ([("a" , 1 , 5 ), ("a" , 2 , 10 ), ("a" , 3 , 15 )])
132
132
133
133
134
134
@pytest .mark .redismod
135
- def testIncrbyDecrby (client ):
135
+ def test_incrby_decrby (client ):
136
136
for _ in range (100 ):
137
137
assert client .ts ().incrby (1 , 1 )
138
138
sleep (0.001 )
@@ -161,7 +161,7 @@ def testIncrbyDecrby(client):
161
161
162
162
163
163
@pytest .mark .redismod
164
- def testCreateAndDeleteRule (client ):
164
+ def test_create_and_delete_rule (client ):
165
165
# test rule creation
166
166
time = 100
167
167
client .ts ().create (1 )
@@ -183,7 +183,7 @@ def testCreateAndDeleteRule(client):
183
183
184
184
@pytest .mark .redismod
185
185
@skip_ifmodversion_lt ("99.99.99" , "timeseries" )
186
- def testDelRange (client ):
186
+ def test_del_range (client ):
187
187
try :
188
188
client .ts ().delete ("test" , 0 , 100 )
189
189
except Exception as e :
@@ -197,7 +197,7 @@ def testDelRange(client):
197
197
198
198
199
199
@pytest .mark .redismod
200
- def testRange (client ):
200
+ def test_range (client ):
201
201
for i in range (100 ):
202
202
client .ts ().add (1 , i , i % 7 )
203
203
assert 100 == len (client .ts ().range (1 , 0 , 200 ))
@@ -219,7 +219,7 @@ def testRange(client):
219
219
220
220
@pytest .mark .redismod
221
221
@skip_ifmodversion_lt ("99.99.99" , "timeseries" )
222
- def testRangeAdvanced (client ):
222
+ def test_range_advanced (client ):
223
223
for i in range (100 ):
224
224
client .ts ().add (1 , i , i % 7 )
225
225
client .ts ().add (1 , i + 200 , i % 7 )
@@ -244,7 +244,7 @@ def testRangeAdvanced(client):
244
244
245
245
@pytest .mark .redismod
246
246
@skip_ifmodversion_lt ("99.99.99" , "timeseries" )
247
- def testRevRange (client ):
247
+ def test_rev_range (client ):
248
248
for i in range (100 ):
249
249
client .ts ().add (1 , i , i % 7 )
250
250
assert 100 == len (client .ts ().range (1 , 0 , 200 ))
@@ -318,7 +318,7 @@ def testMultiRange(client):
318
318
319
319
@pytest .mark .redismod
320
320
@skip_ifmodversion_lt ("99.99.99" , "timeseries" )
321
- def testMultiRangeAdvanced (client ):
321
+ def test_multi_range_advanced (client ):
322
322
client .ts ().create (1 , labels = {"Test" : "This" , "team" : "ny" })
323
323
client .ts ().create (
324
324
2 ,
@@ -399,7 +399,7 @@ def testMultiRangeAdvanced(client):
399
399
400
400
@pytest .mark .redismod
401
401
@skip_ifmodversion_lt ("99.99.99" , "timeseries" )
402
- def testMultiReverseRange (client ):
402
+ def test_multi_reverse_range (client ):
403
403
client .ts ().create (1 , labels = {"Test" : "This" , "team" : "ny" })
404
404
client .ts ().create (
405
405
2 ,
@@ -496,7 +496,7 @@ def testMultiReverseRange(client):
496
496
497
497
498
498
@pytest .mark .redismod
499
- def testGet (client ):
499
+ def test_get (client ):
500
500
name = "test"
501
501
client .ts ().create (name )
502
502
assert client .ts ().get (name ) is None
@@ -507,7 +507,7 @@ def testGet(client):
507
507
508
508
509
509
@pytest .mark .redismod
510
- def testMGet (client ):
510
+ def test_mget (client ):
511
511
client .ts ().create (1 , labels = {"Test" : "This" })
512
512
client .ts ().create (2 , labels = {"Test" : "This" , "Taste" : "That" })
513
513
act_res = client .ts ().mget (["Test=This" ])
@@ -528,7 +528,7 @@ def testMGet(client):
528
528
529
529
530
530
@pytest .mark .redismod
531
- def testInfo (client ):
531
+ def test_info (client ):
532
532
client .ts ().create (
533
533
1 ,
534
534
retention_msecs = 5 ,
@@ -556,7 +556,7 @@ def testInfoDuplicatePolicy(client):
556
556
557
557
558
558
@pytest .mark .redismod
559
- def testQueryIndex (client ):
559
+ def test_query_index (client ):
560
560
client .ts ().create (1 , labels = {"Test" : "This" })
561
561
client .ts ().create (2 , labels = {"Test" : "This" , "Taste" : "That" })
562
562
assert 2 == len (client .ts ().queryindex (["Test=This" ]))
@@ -580,7 +580,7 @@ def test_pipeline(client):
580
580
581
581
582
582
@pytest .mark .redismod
583
- def testUncompressed (client ):
583
+ def test_uncompressed (client ):
584
584
client .ts ().create ("compressed" )
585
585
client .ts ().create ("uncompressed" , uncompressed = True )
586
586
compressed_info = client .ts ().info ("compressed" )
0 commit comments