mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +08:00
output_type should not be optional in new_output
and fix bug that this would have revealed
This commit is contained in:
parent
46602a00a0
commit
857c243434
@ -58,7 +58,7 @@ class APITest(NotebookTestBase):
|
|||||||
nb.worksheets = [ws]
|
nb.worksheets = [ws]
|
||||||
ws.cells.append(new_heading_cell(u'Created by test ³'))
|
ws.cells.append(new_heading_cell(u'Created by test ³'))
|
||||||
cc1 = new_code_cell(input=u'print(2*6)')
|
cc1 = new_code_cell(input=u'print(2*6)')
|
||||||
cc1.outputs.append(new_output(output_text=u'12'))
|
cc1.outputs.append(new_output(output_text=u'12', output_type='stream'))
|
||||||
cc1.outputs.append(new_output(output_png=png_green_pixel, output_type='pyout'))
|
cc1.outputs.append(new_output(output_png=png_green_pixel, output_type='pyout'))
|
||||||
ws.cells.append(cc1)
|
ws.cells.append(cc1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user