Checking to make sure that output is displayed
()
| 4 | from IPython.utils.capture import CapturedIO |
| 5 | |
| 6 | def 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 | |
| 19 | def test_output_quiet(): |
nothing calls this directly
no test coverage detected