Skip to content

Commit 5d9752d

Browse files
committed
Add test for execute_result
1 parent d30b297 commit 5d9752d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

jupyter_server_nbmodel/tests/test_handlers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ async def _(kernel_id, ready=None):
3636
'{"output_type": "stream", "name": "stdout", "text": "hello buddy\\n"}',
3737
),
3838
("a = 1", ""),
39+
(
40+
"""from IPython.display import HTML
41+
HTML('<p><b>Jupyter</b> rocks.</p>')""",
42+
'{"output_type": "execute_result", "metadata": {}, "data": {"text/plain": "<IPython.core.display.HTML object>", "text/html": "<p><b>Jupyter</b> rocks.</p>"}, "execution_count": 1}',
43+
),
3944
),
4045
)
4146
async def test_post_execute(jp_fetch, pending_kernel_is_ready, snippet, output):

0 commit comments

Comments
 (0)