Skip to content

Commit 00aebb5

Browse files
fixed tests as per pr comment
1 parent 08dcfbe commit 00aebb5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎IPython/kernel/tests/test_message_spec.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,13 +405,17 @@ def test_single_payload():
405405

406406
def 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

412413
def 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():
421425
def 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():
430437
def 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

Comments
 (0)