output_type should not be optional in new_output

and fix bug that this would have revealed
This commit is contained in:
MinRK 2014-04-05 19:04:45 -07:00
parent 46602a00a0
commit 857c243434

View File

@ -58,7 +58,7 @@ class APITest(NotebookTestBase):
nb.worksheets = [ws]
ws.cells.append(new_heading_cell(u'Created by test ³'))
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'))
ws.cells.append(cc1)