##// END OF EJS Templates
trying to add history test
Narahari -
Show More
@@ -198,6 +198,9 b' class DisplayData(MimeBundle):'
198 class ExecuteResult(MimeBundle):
198 class ExecuteResult(MimeBundle):
199 execution_count = Integer()
199 execution_count = Integer()
200
200
201 class HistoryReply(MimeBundle):
202 history = List(Unicode)
203
201
204
202 references = {
205 references = {
203 'execute_reply' : ExecuteReply(),
206 'execute_reply' : ExecuteReply(),
@@ -208,6 +211,7 b' references = {'
208 'is_complete_reply': IsCompleteReply(),
211 'is_complete_reply': IsCompleteReply(),
209 'execute_input' : ExecuteInput(),
212 'execute_input' : ExecuteInput(),
210 'execute_result' : ExecuteResult(),
213 'execute_result' : ExecuteResult(),
214 'history_reply' : HistoryReply(),
211 'error' : Error(),
215 'error' : Error(),
212 'stream' : Stream(),
216 'stream' : Stream(),
213 'display_data' : DisplayData(),
217 'display_data' : DisplayData(),
@@ -401,11 +405,18 b' def test_single_payload():'
401
405
402 def test_is_complete():
406 def test_is_complete():
403 flush_channels()
407 flush_channels()
404
408 a
405 msg_id = KC.is_complete("a = 1")
409 msg_id = KC.is_complete("a = 1")
406 reply = KC.get_shell_msg(timeout=TIMEOUT)
410 reply = KC.get_shell_msg(timeout=TIMEOUT)
407 validate_message(reply, 'is_complete_reply', msg_id)
411 validate_message(reply, 'is_complete_reply', msg_id)
408
412
413 def test_history():
414 flush_channels()
415
416 msg_id = KC.history("range", True, True)
417 reply = KC.get_shell_msg(timeout=TIMEOUT)
418 validate_message(reply, 'history_reply', msg_id)
419
409 # IOPub channel
420 # IOPub channel
410
421
411
422
General Comments 0
You need to be logged in to leave comments. Login now