From 00aebb53d13f03e831769c8aa2d55928ac820057 2014-12-14 22:21:57 From: Narahari Date: 2014-12-14 22:21:57 Subject: [PATCH] fixed tests as per pr comment --- diff --git a/IPython/kernel/tests/test_message_spec.py b/IPython/kernel/tests/test_message_spec.py index cb8a0d8..a2a6d3f 100644 --- a/IPython/kernel/tests/test_message_spec.py +++ b/IPython/kernel/tests/test_message_spec.py @@ -405,6 +405,7 @@ def test_single_payload(): def test_is_complete(): flush_channels() + msg_id = KC.is_complete("a = 1") reply = KC.get_shell_msg(timeout=TIMEOUT) validate_message(reply, 'is_complete_reply', msg_id) @@ -412,6 +413,9 @@ def test_is_complete(): def test_history_range(): flush_channels() + msg_id_exec = KC.execute(code='x=1', store_history = True) + reply_exec = KC.get_shell_msg(timeout=TIMEOUT) + msg_id = KC.history(hist_access_type = 'range', raw = True, output = True, start = 1, stop = 2, session = 0) reply = KC.get_shell_msg(timeout=TIMEOUT) validate_message(reply, 'history_reply', msg_id) @@ -421,6 +425,9 @@ def test_history_range(): def test_history_tail(): flush_channels() + msg_id_exec = KC.execute(code='x=1', store_history = True) + reply_exec = KC.get_shell_msg(timeout=TIMEOUT) + msg_id = KC.history(hist_access_type = 'tail', raw = True, output = True, n = 1, session = 0) reply = KC.get_shell_msg(timeout=TIMEOUT) validate_message(reply, 'history_reply', msg_id) @@ -430,6 +437,9 @@ def test_history_tail(): def test_history_search(): flush_channels() + msg_id_exec = KC.execute(code='x=1', store_history = True) + reply_exec = KC.get_shell_msg(timeout=TIMEOUT) + msg_id = KC.history(hist_access_type = 'search', raw = True, output = True, n = 1, pattern = '*', session = 0) reply = KC.get_shell_msg(timeout=TIMEOUT) validate_message(reply, 'history_reply', msg_id)