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

Function test_cell_magic_not_found

tests/test_magic.py:105–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103
104
105def 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
115def test_magic_error_status():

Callers

nothing calls this directly

Calls 2

run_cell_magicMethod · 0.80
run_cellMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…