MCPcopy Create free account
hub / github.com/ipython/ipython / test_cell_magic_not_found

Function test_cell_magic_not_found

IPython/core/tests/test_magic.py:88–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86
87
88def test_cell_magic_not_found():
89 # magic not found raises UsageError
90 with nt.assert_raises(UsageError):
91 _ip.run_cell_magic('doesntexist', 'line', 'cell')
92
93 # ensure result isn't success when a magic isn't found
94 result = _ip.run_cell('%%doesntexist')
95 assert isinstance(result.error_in_exec, UsageError)
96
97
98def 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