Skip to content

Commit

Permalink
Add test for execute_result
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed May 6, 2024
1 parent d30b297 commit 5d9752d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jupyter_server_nbmodel/tests/test_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ async def _(kernel_id, ready=None):
'{"output_type": "stream", "name": "stdout", "text": "hello buddy\\n"}',
),
("a = 1", ""),
(
"""from IPython.display import HTML
HTML('<p><b>Jupyter</b> rocks.</p>')""",
'{"output_type": "execute_result", "metadata": {}, "data": {"text/plain": "<IPython.core.display.HTML object>", "text/html": "<p><b>Jupyter</b> rocks.</p>"}, "execution_count": 1}',
),
),
)
async def test_post_execute(jp_fetch, pending_kernel_is_ready, snippet, output):
Expand Down

0 comments on commit 5d9752d

Please sign in to comment.