##// END OF EJS Templates
remove 'name' from inspect_reply
MinRK -
Show More
@@ -81,7 +81,6 b' class InProcessKernelManagerTestCase(unittest.TestCase):'
81 81 self.assertEqual(msg['header']['msg_type'], 'inspect_reply')
82 82 content = msg['content']
83 83 assert content['found']
84 self.assertEqual(content['name'], 'foo')
85 84 text = content['data']['text/plain']
86 85 self.assertIn('int', text)
87 86
@@ -121,7 +121,6 b' class ExecuteReplyError(Reference):'
121 121
122 122
123 123 class InspectReply(MimeBundle):
124 name = Unicode()
125 124 found = Bool()
126 125
127 126
@@ -315,7 +314,6 b' def test_oinfo_found():'
315 314 validate_message(reply, 'inspect_reply', msg_id)
316 315 content = reply['content']
317 316 assert content['found']
318 nt.assert_equal(content['name'], 'a')
319 317 text = content['data']['text/plain']
320 318 nt.assert_in('Type:', text)
321 319 nt.assert_in('Docstring:', text)
@@ -331,7 +329,6 b' def test_oinfo_detail():'
331 329 validate_message(reply, 'inspect_reply', msg_id)
332 330 content = reply['content']
333 331 assert content['found']
334 nt.assert_equal(content['name'], 'ip.object_inspect')
335 332 text = content['data']['text/plain']
336 333 nt.assert_in('Definition:', text)
337 334 nt.assert_in('Source:', text)
@@ -388,7 +385,6 b' def test_stream():'
388 385 stdout = KC.iopub_channel.get_msg(timeout=TIMEOUT)
389 386 validate_message(stdout, 'stream', msg_id)
390 387 content = stdout['content']
391 nt.assert_equal(content['name'], u'stdout')
392 388 nt.assert_equal(content['data'], u'hi\n')
393 389
394 390
@@ -514,7 +514,6 b' class Kernel(Configurable):'
514 514 reply_content = {'status' : 'ok'}
515 515 reply_content['data'] = data = {}
516 516 reply_content['metadata'] = {}
517 reply_content['name'] = name
518 517 reply_content['found'] = info['found']
519 518 if info['found']:
520 519 info_text = self.shell.object_inspect_text(
General Comments 0
You need to be logged in to leave comments. Login now