Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 50d34b8

Browse files
committed
Add a code cell for the script output to pick up
1 parent c9adf73 commit 50d34b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_handlers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
raise_error, raise_github_error,
1414
verify_gist_response)
1515
from nbformat import write
16-
from nbformat.v4 import new_markdown_cell, new_notebook
16+
from nbformat.v4 import new_markdown_cell, new_code_cell, new_notebook
1717

1818

1919
class TestError(unittest.TestCase):
@@ -327,7 +327,8 @@ def test_get_notebook_contents_notebook(self):
327327

328328
nb = new_notebook(
329329
cells=[
330-
new_markdown_cell(u'Testing')
330+
new_markdown_cell(u'Testing'),
331+
new_code_cell(u'x = 123')
331332
])
332333

333334
with io.open(os.path.join(nbdir, fname), 'w',

0 commit comments

Comments
 (0)