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

Function test_magic_not_found

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

Source from the content-addressed store, hash-verified

76
77
78def test_magic_not_found():
79 # magic not found raises UsageError
80 with nt.assert_raises(UsageError):
81 _ip.magic('doesntexist')
82
83 # ensure result isn't success when a magic isn't found
84 result = _ip.run_cell('%doesntexist')
85 assert isinstance(result.error_in_exec, UsageError)
86
87
88def test_cell_magic_not_found():

Callers

nothing calls this directly

Calls 2

magicMethod · 0.45
run_cellMethod · 0.45

Tested by

no test coverage detected