()
| 93 | |
| 94 | |
| 95 | def test_magic_not_found(): |
| 96 | # magic not found raises UsageError |
| 97 | with pytest.raises(UsageError): |
| 98 | _ip.run_line_magic("doesntexist", "") |
| 99 | |
| 100 | # ensure result isn't success when a magic isn't found |
| 101 | result = _ip.run_cell("%doesntexist") |
| 102 | assert isinstance(result.error_in_exec, UsageError) |
| 103 | |
| 104 | |
| 105 | def test_cell_magic_not_found(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…