@@ -307,7 +307,7 @@ def test_lua_multi(env):
307307 con = env .getConnection ()
308308 ret = con .execute_command ('MULTI' )
309309 env .assertEqual (ret , b'OK' )
310- ret = con .execute_command ('AI.MODELRUN' , "no_model" , "INPUTS" , "no_input" , "OUTPUTS" , "no_output" )
310+ ret = con .execute_command ('AI.MODELRUN' , "no_model{1} " , "INPUTS" , "no_input{1} " , "OUTPUTS" , "no_output{1} " )
311311 env .assertEqual (ret , b'QUEUED' )
312312 try :
313313 ret = con .execute_command ('EXEC' )
@@ -316,8 +316,8 @@ def test_lua_multi(env):
316316 env .assertEqual (type (exception ), redis .exceptions .ResponseError )
317317 env .assertEqual ("ERR Cannot run RedisAI command within a transaction or a LUA script" , exception .__str__ ())
318318 try :
319- ret = con .execute_command ('EVAL' , "return redis.pcall('AI.MODELRUN', 'no_model', 'INPUTS', 'NO_INPUT',"
320- " 'OUTPUTS', 'NO_OUTPUT')" , 0 )
319+ ret = con .execute_command ('EVAL' , "return redis.pcall('AI.MODELRUN', 'no_model{1} ', 'INPUTS', 'NO_INPUT{1} ',"
320+ " 'OUTPUTS', 'NO_OUTPUT{1} ')" , 0 )
321321 except Exception as e :
322322 exception = e
323323 env .assertEqual (type (exception ), redis .exceptions .ResponseError )
0 commit comments