From 857c243434dcac3388ef563c5469870c99a5ea30 Mon Sep 17 00:00:00 2001 From: MinRK Date: Sat, 5 Apr 2014 19:04:45 -0700 Subject: [PATCH] output_type should not be optional in new_output and fix bug that this would have revealed --- IPython/html/nbconvert/tests/test_nbconvert_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/html/nbconvert/tests/test_nbconvert_handlers.py b/IPython/html/nbconvert/tests/test_nbconvert_handlers.py index b612b9c29..6916f1f4c 100644 --- a/IPython/html/nbconvert/tests/test_nbconvert_handlers.py +++ b/IPython/html/nbconvert/tests/test_nbconvert_handlers.py @@ -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)