MCPcopy Index your code
hub / github.com/ipython/ipython / test_output_displayed

Function test_output_displayed

tests/test_displayhook.py:7–17  ·  view source on GitHub ↗

Checking to make sure that output is displayed

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

AssertPrintsClass · 0.90
run_cellMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…