@@ -103,7 +103,7 @@ def test_dagro_common_errors(env):
103103
104104 # ERR unsupported command within DAG
105105 try :
106- command = "AI.DAGRUNRO |> " \
106+ command = "AI.DAGRUN_RO |> " \
107107 "AI.DONTEXIST tensor1 FLOAT 1 2 VALUES 5 10"
108108
109109 ret = con .execute_command (command )
@@ -114,17 +114,17 @@ def test_dagro_common_errors(env):
114114
115115 # ERR wrong number of arguments for 'AI.DAGRUN' command
116116 try :
117- command = "AI.DAGRUNRO "
117+ command = "AI.DAGRUN_RO "
118118
119119 ret = con .execute_command (command )
120120 except Exception as e :
121121 exception = e
122122 env .assertEqual (type (exception ), redis .exceptions .ResponseError )
123- env .assertEqual ("wrong number of arguments for 'AI.DAGRUNRO ' command" ,exception .__str__ ())
123+ env .assertEqual ("wrong number of arguments for 'AI.DAGRUN_RO ' command" ,exception .__str__ ())
124124
125125 # ERR invalid or negative value found in number of keys to LOAD
126126 try :
127- command = "AI.DAGRUNRO LOAD notnumber |> " \
127+ command = "AI.DAGRUN_RO LOAD notnumber |> " \
128128 "AI.TENSORSET tensor1 FLOAT 1 2 VALUES 5 10"
129129
130130 ret = con .execute_command (command )
@@ -185,7 +185,7 @@ def test_dag_local_tensorset(env):
185185def test_dagro_local_tensorset (env ):
186186 con = env .getConnection ()
187187
188- command = "AI.DAGRUNRO " \
188+ command = "AI.DAGRUN_RO " \
189189 "AI.TENSORSET volatile_tensor1 FLOAT 1 2 VALUES 5 10 |> " \
190190 "AI.TENSORSET volatile_tensor2 FLOAT 1 2 VALUES 5 10 "
191191
@@ -218,7 +218,7 @@ def test_dag_local_tensorset_persist(env):
218218def test_dagro_local_tensorset_persist (env ):
219219 con = env .getConnection ()
220220
221- command = "AI.DAGRUNRO " \
221+ command = "AI.DAGRUN_RO " \
222222 "PERSIST 1 tensor1 |> " \
223223 "AI.TENSORSET tensor1 FLOAT 1 2 VALUES 5 10"
224224
@@ -355,7 +355,7 @@ def test_dagro_keyspace_tensorget(env):
355355 "AI.TENSORSET persisted_tensor FLOAT 1 2 VALUES 5 10" )
356356 env .assertEqual (ret , b'OK' )
357357
358- command = "AI.DAGRUNRO LOAD 1 persisted_tensor |> " \
358+ command = "AI.DAGRUN_RO LOAD 1 persisted_tensor |> " \
359359 "AI.TENSORGET persisted_tensor VALUES"
360360
361361 ret = con .execute_command (command )
@@ -524,7 +524,7 @@ def test_dagro_modelrun_financialNet_no_writes_multiple_modelruns(env):
524524 tensor_number = 1
525525 for transaction_tensor in creditcard_transactions :
526526 ret = con .execute_command (
527- 'AI.DAGRUNRO ' , 'LOAD' , '1' , 'referenceTensor:{}' .format (tensor_number ), '|>' ,
527+ 'AI.DAGRUN_RO ' , 'LOAD' , '1' , 'referenceTensor:{}' .format (tensor_number ), '|>' ,
528528 'AI.TENSORSET' , 'transactionTensor:{}' .format (tensor_number ), 'FLOAT' , 1 , 30 ,'BLOB' , transaction_tensor .tobytes (), '|>' ,
529529 'AI.MODELRUN' , 'financialNet' ,
530530 'INPUTS' , 'transactionTensor:{}' .format (tensor_number ), 'referenceTensor:{}' .format (tensor_number ),
0 commit comments