@@ -405,13 +405,17 @@ def test_single_payload():
405405
406406def test_is_complete ():
407407 flush_channels ()
408+
408409 msg_id = KC .is_complete ("a = 1" )
409410 reply = KC .get_shell_msg (timeout = TIMEOUT )
410411 validate_message (reply , 'is_complete_reply' , msg_id )
411412
412413def test_history_range ():
413414 flush_channels ()
414415
416+ msg_id_exec = KC .execute (code = 'x=1' , store_history = True )
417+ reply_exec = KC .get_shell_msg (timeout = TIMEOUT )
418+
415419 msg_id = KC .history (hist_access_type = 'range' , raw = True , output = True , start = 1 , stop = 2 , session = 0 )
416420 reply = KC .get_shell_msg (timeout = TIMEOUT )
417421 validate_message (reply , 'history_reply' , msg_id )
@@ -421,6 +425,9 @@ def test_history_range():
421425def test_history_tail ():
422426 flush_channels ()
423427
428+ msg_id_exec = KC .execute (code = 'x=1' , store_history = True )
429+ reply_exec = KC .get_shell_msg (timeout = TIMEOUT )
430+
424431 msg_id = KC .history (hist_access_type = 'tail' , raw = True , output = True , n = 1 , session = 0 )
425432 reply = KC .get_shell_msg (timeout = TIMEOUT )
426433 validate_message (reply , 'history_reply' , msg_id )
@@ -430,6 +437,9 @@ def test_history_tail():
430437def test_history_search ():
431438 flush_channels ()
432439
440+ msg_id_exec = KC .execute (code = 'x=1' , store_history = True )
441+ reply_exec = KC .get_shell_msg (timeout = TIMEOUT )
442+
433443 msg_id = KC .history (hist_access_type = 'search' , raw = True , output = True , n = 1 , pattern = '*' , session = 0 )
434444 reply = KC .get_shell_msg (timeout = TIMEOUT )
435445 validate_message (reply , 'history_reply' , msg_id )
0 commit comments