MCPcopy Create free account
hub / github.com/ipython/ipython / test_output_displayed

Function test_output_displayed

IPython/core/tests/test_displayhook.py:6–16  ·  view source on GitHub ↗

Checking to make sure that output is displayed

()

Source from the content-addressed store, hash-verified

4from IPython.utils.capture import CapturedIO
5
6def test_output_displayed():
7 """Checking to make sure that output is displayed"""
8
9 with AssertPrints('2'):
10 ip.run_cell('1+1', store_history=True)
11
12 with AssertPrints('2'):
13 ip.run_cell('1+1 # comment with a semicolon;', store_history=True)
14
15 with AssertPrints('2'):
16 ip.run_cell('1+1\n#commented_out_function();', store_history=True)
17
18
19def test_output_quiet():

Callers

nothing calls this directly

Calls 2

AssertPrintsClass · 0.90
run_cellMethod · 0.45

Tested by

no test coverage detected