Checking to make sure that output is quiet
()
| 17 | |
| 18 | |
| 19 | def test_output_quiet(): |
| 20 | """Checking to make sure that output is quiet""" |
| 21 | |
| 22 | with AssertNotPrints('2'): |
| 23 | ip.run_cell('1+1;', store_history=True) |
| 24 | |
| 25 | with AssertNotPrints('2'): |
| 26 | ip.run_cell('1+1; # comment with a semicolon', store_history=True) |
| 27 | |
| 28 | with AssertNotPrints('2'): |
| 29 | ip.run_cell('1+1;\n#commented_out_function()', store_history=True) |
| 30 | |
| 31 | def test_underscore_no_overrite_user(): |
| 32 | ip.run_cell('_ = 42', store_history=True) |
nothing calls this directly
no test coverage detected