@@ -12,6 +12,8 @@ async def test_bulk(decoded_r):
12
12
await decoded_r .graph ().bulk (foo = "bar!" )
13
13
14
14
15
+ @pytest .mark .redismod
16
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
15
17
async def test_graph_creation (decoded_r : redis .Redis ):
16
18
graph = decoded_r .graph ()
17
19
@@ -56,6 +58,8 @@ async def test_graph_creation(decoded_r: redis.Redis):
56
58
await graph .delete ()
57
59
58
60
61
+ @pytest .mark .redismod
62
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
59
63
async def test_array_functions (decoded_r : redis .Redis ):
60
64
graph = decoded_r .graph ()
61
65
@@ -78,6 +82,8 @@ async def test_array_functions(decoded_r: redis.Redis):
78
82
assert [a ] == result .result_set [0 ][0 ]
79
83
80
84
85
+ @pytest .mark .redismod
86
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
81
87
async def test_path (decoded_r : redis .Redis ):
82
88
node0 = Node (node_id = 0 , label = "L1" )
83
89
node1 = Node (node_id = 1 , label = "L1" )
@@ -97,6 +103,8 @@ async def test_path(decoded_r: redis.Redis):
97
103
assert expected_results == result .result_set
98
104
99
105
106
+ @pytest .mark .redismod
107
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
100
108
async def test_param (decoded_r : redis .Redis ):
101
109
params = [1 , 2.3 , "str" , True , False , None , [0 , 1 , 2 ]]
102
110
query = "RETURN $param"
@@ -106,6 +114,8 @@ async def test_param(decoded_r: redis.Redis):
106
114
assert expected_results == result .result_set
107
115
108
116
117
+ @pytest .mark .redismod
118
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
109
119
async def test_map (decoded_r : redis .Redis ):
110
120
query = "RETURN {a:1, b:'str', c:NULL, d:[1,2,3], e:True, f:{x:1, y:2}}"
111
121
@@ -122,6 +132,8 @@ async def test_map(decoded_r: redis.Redis):
122
132
assert actual == expected
123
133
124
134
135
+ @pytest .mark .redismod
136
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
125
137
async def test_point (decoded_r : redis .Redis ):
126
138
query = "RETURN point({latitude: 32.070794860, longitude: 34.820751118})"
127
139
expected_lat = 32.070794860
@@ -138,6 +150,8 @@ async def test_point(decoded_r: redis.Redis):
138
150
assert abs (actual ["longitude" ] - expected_lon ) < 0.001
139
151
140
152
153
+ @pytest .mark .redismod
154
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
141
155
async def test_index_response (decoded_r : redis .Redis ):
142
156
result_set = await decoded_r .graph ().query ("CREATE INDEX ON :person(age)" )
143
157
assert 1 == result_set .indices_created
@@ -152,6 +166,8 @@ async def test_index_response(decoded_r: redis.Redis):
152
166
await decoded_r .graph ().query ("DROP INDEX ON :person(age)" )
153
167
154
168
169
+ @pytest .mark .redismod
170
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
155
171
async def test_stringify_query_result (decoded_r : redis .Redis ):
156
172
graph = decoded_r .graph ()
157
173
@@ -205,6 +221,8 @@ async def test_stringify_query_result(decoded_r: redis.Redis):
205
221
await graph .delete ()
206
222
207
223
224
+ @pytest .mark .redismod
225
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
208
226
async def test_optional_match (decoded_r : redis .Redis ):
209
227
# Build a graph of form (a)-[R]->(b)
210
228
node0 = Node (node_id = 0 , label = "L1" , properties = {"value" : "a" })
@@ -229,6 +247,8 @@ async def test_optional_match(decoded_r: redis.Redis):
229
247
await graph .delete ()
230
248
231
249
250
+ @pytest .mark .redismod
251
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
232
252
async def test_cached_execution (decoded_r : redis .Redis ):
233
253
await decoded_r .graph ().query ("CREATE ()" )
234
254
@@ -248,6 +268,8 @@ async def test_cached_execution(decoded_r: redis.Redis):
248
268
assert cached_result .cached_execution
249
269
250
270
271
+ @pytest .mark .redismod
272
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
251
273
async def test_slowlog (decoded_r : redis .Redis ):
252
274
create_query = """CREATE
253
275
(:Rider {name:'Valentino Rossi'})-[:rides]->(:Team {name:'Yamaha'}),
@@ -261,6 +283,8 @@ async def test_slowlog(decoded_r: redis.Redis):
261
283
262
284
263
285
@pytest .mark .xfail (strict = False )
286
+ @pytest .mark .redismod
287
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
264
288
async def test_query_timeout (decoded_r : redis .Redis ):
265
289
# Build a sample graph with 1000 nodes.
266
290
await decoded_r .graph ().query ("UNWIND range(0,1000) as val CREATE ({v: val})" )
@@ -274,6 +298,8 @@ async def test_query_timeout(decoded_r: redis.Redis):
274
298
assert False is False
275
299
276
300
301
+ @pytest .mark .redismod
302
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
277
303
async def test_read_only_query (decoded_r : redis .Redis ):
278
304
with pytest .raises (Exception ):
279
305
# Issue a write query, specifying read-only true,
@@ -282,6 +308,8 @@ async def test_read_only_query(decoded_r: redis.Redis):
282
308
assert False is False
283
309
284
310
311
+ @pytest .mark .redismod
312
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
285
313
async def test_profile (decoded_r : redis .Redis ):
286
314
q = """UNWIND range(1, 3) AS x CREATE (p:Person {v:x})"""
287
315
profile = (await decoded_r .graph ().profile (q )).result_set
@@ -297,6 +325,8 @@ async def test_profile(decoded_r: redis.Redis):
297
325
298
326
299
327
@skip_if_redis_enterprise ()
328
+ @pytest .mark .redismod
329
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
300
330
async def test_config (decoded_r : redis .Redis ):
301
331
config_name = "RESULTSET_SIZE"
302
332
config_value = 3
@@ -328,6 +358,8 @@ async def test_config(decoded_r: redis.Redis):
328
358
329
359
330
360
@pytest .mark .onlynoncluster
361
+ @pytest .mark .redismod
362
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
331
363
async def test_list_keys (decoded_r : redis .Redis ):
332
364
result = await decoded_r .graph ().list_keys ()
333
365
assert result == []
@@ -350,6 +382,8 @@ async def test_list_keys(decoded_r: redis.Redis):
350
382
assert result == []
351
383
352
384
385
+ @pytest .mark .redismod
386
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
353
387
async def test_multi_label (decoded_r : redis .Redis ):
354
388
redis_graph = decoded_r .graph ("g" )
355
389
@@ -375,6 +409,8 @@ async def test_multi_label(decoded_r: redis.Redis):
375
409
assert True
376
410
377
411
412
+ @pytest .mark .redismod
413
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
378
414
async def test_execution_plan (decoded_r : redis .Redis ):
379
415
redis_graph = decoded_r .graph ("execution_plan" )
380
416
create_query = """CREATE
@@ -393,6 +429,8 @@ async def test_execution_plan(decoded_r: redis.Redis):
393
429
await redis_graph .delete ()
394
430
395
431
432
+ @pytest .mark .redismod
433
+ @pytest .mark .skip (reason = "Graph module removed from Redis Stack" )
396
434
async def test_explain (decoded_r : redis .Redis ):
397
435
redis_graph = decoded_r .graph ("execution_plan" )
398
436
# graph creation / population
0 commit comments