##// END OF EJS Templates
fixed tests as per pr comment
Narahari -
Show More
@@ -405,6 +405,7 b' def test_single_payload():'
405
405
406 def test_is_complete():
406 def test_is_complete():
407 flush_channels()
407 flush_channels()
408
408 msg_id = KC.is_complete("a = 1")
409 msg_id = KC.is_complete("a = 1")
409 reply = KC.get_shell_msg(timeout=TIMEOUT)
410 reply = KC.get_shell_msg(timeout=TIMEOUT)
410 validate_message(reply, 'is_complete_reply', msg_id)
411 validate_message(reply, 'is_complete_reply', msg_id)
@@ -412,6 +413,9 b' def test_is_complete():'
412 def test_history_range():
413 def test_history_range():
413 flush_channels()
414 flush_channels()
414
415
416 msg_id_exec = KC.execute(code='x=1', store_history = True)
417 reply_exec = KC.get_shell_msg(timeout=TIMEOUT)
418
415 msg_id = KC.history(hist_access_type = 'range', raw = True, output = True, start = 1, stop = 2, session = 0)
419 msg_id = KC.history(hist_access_type = 'range', raw = True, output = True, start = 1, stop = 2, session = 0)
416 reply = KC.get_shell_msg(timeout=TIMEOUT)
420 reply = KC.get_shell_msg(timeout=TIMEOUT)
417 validate_message(reply, 'history_reply', msg_id)
421 validate_message(reply, 'history_reply', msg_id)
@@ -421,6 +425,9 b' def test_history_range():'
421 def test_history_tail():
425 def test_history_tail():
422 flush_channels()
426 flush_channels()
423
427
428 msg_id_exec = KC.execute(code='x=1', store_history = True)
429 reply_exec = KC.get_shell_msg(timeout=TIMEOUT)
430
424 msg_id = KC.history(hist_access_type = 'tail', raw = True, output = True, n = 1, session = 0)
431 msg_id = KC.history(hist_access_type = 'tail', raw = True, output = True, n = 1, session = 0)
425 reply = KC.get_shell_msg(timeout=TIMEOUT)
432 reply = KC.get_shell_msg(timeout=TIMEOUT)
426 validate_message(reply, 'history_reply', msg_id)
433 validate_message(reply, 'history_reply', msg_id)
@@ -430,6 +437,9 b' def test_history_tail():'
430 def test_history_search():
437 def test_history_search():
431 flush_channels()
438 flush_channels()
432
439
440 msg_id_exec = KC.execute(code='x=1', store_history = True)
441 reply_exec = KC.get_shell_msg(timeout=TIMEOUT)
442
433 msg_id = KC.history(hist_access_type = 'search', raw = True, output = True, n = 1, pattern = '*', session = 0)
443 msg_id = KC.history(hist_access_type = 'search', raw = True, output = True, n = 1, pattern = '*', session = 0)
434 reply = KC.get_shell_msg(timeout=TIMEOUT)
444 reply = KC.get_shell_msg(timeout=TIMEOUT)
435 validate_message(reply, 'history_reply', msg_id)
445 validate_message(reply, 'history_reply', msg_id)
General Comments 0
You need to be logged in to leave comments. Login now