()
| 103 | |
| 104 | |
| 105 | def test_cell_magic_not_found(): |
| 106 | # magic not found raises UsageError |
| 107 | with pytest.raises(UsageError): |
| 108 | _ip.run_cell_magic("doesntexist", "line", "cell") |
| 109 | |
| 110 | # ensure result isn't success when a magic isn't found |
| 111 | result = _ip.run_cell("%%doesntexist") |
| 112 | assert isinstance(result.error_in_exec, UsageError) |
| 113 | |
| 114 | |
| 115 | def test_magic_error_status(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…