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

Function test_magic_not_found

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

Source from the content-addressed store, hash-verified

93
94
95def 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
105def test_cell_magic_not_found():

Callers

nothing calls this directly

Calls 2

run_line_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…