Show More
@@ -199,7 +199,7 b' class ExecuteResult(MimeBundle):' | |||||
199 | execution_count = Integer() |
|
199 | execution_count = Integer() | |
200 |
|
200 | |||
201 | class HistoryReply(Reference): |
|
201 | class HistoryReply(Reference): | |
202 |
history = List( |
|
202 | history = List(List()) | |
203 |
|
203 | |||
204 |
|
204 | |||
205 | references = { |
|
205 | references = { | |
@@ -412,23 +412,29 b' def test_is_complete():' | |||||
412 | def test_history_range(): |
|
412 | def test_history_range(): | |
413 | flush_channels() |
|
413 | flush_channels() | |
414 |
|
414 | |||
415 | msg_id = KC.history("range", True, True) |
|
415 | 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) |
|
416 | reply = KC.get_shell_msg(timeout=TIMEOUT) | |
417 | validate_message(reply, 'history_reply', msg_id) |
|
417 | validate_message(reply, 'history_reply', msg_id) | |
|
418 | content = reply['content'] | |||
|
419 | nt.assert_equal(len(content['history']), 1) | |||
418 |
|
420 | |||
419 | def test_history_tail(): |
|
421 | def test_history_tail(): | |
420 | flush_channels() |
|
422 | flush_channels() | |
421 |
|
423 | |||
422 |
msg_id = KC.history( |
|
424 | msg_id = KC.history(hist_access_type = 'tail', raw = True, output = True, n = 1, session = 0) | |
423 | reply = KC.get_shell_msg(timeout=TIMEOUT) |
|
425 | reply = KC.get_shell_msg(timeout=TIMEOUT) | |
424 | validate_message(reply, 'history_reply', msg_id) |
|
426 | validate_message(reply, 'history_reply', msg_id) | |
|
427 | content = reply['content'] | |||
|
428 | nt.assert_equal(len(content['history']), 1) | |||
425 |
|
429 | |||
426 | def test_history_search(): |
|
430 | def test_history_search(): | |
427 | flush_channels() |
|
431 | flush_channels() | |
428 |
|
432 | |||
429 |
msg_id = KC.history( |
|
433 | msg_id = KC.history(hist_access_type = 'search', raw = True, output = True, n = 1, pattern = '*', session = 0) | |
430 | reply = KC.get_shell_msg(timeout=TIMEOUT) |
|
434 | reply = KC.get_shell_msg(timeout=TIMEOUT) | |
431 | validate_message(reply, 'history_reply', msg_id) |
|
435 | validate_message(reply, 'history_reply', msg_id) | |
|
436 | content = reply['content'] | |||
|
437 | nt.assert_equal(len(content['history']), 1) | |||
432 |
|
438 | |||
433 | # IOPub channel |
|
439 | # IOPub channel | |
434 |
|
440 |
General Comments 0
You need to be logged in to leave comments.
Login now