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

Function test_cell_magic_class2

tests/test_magic.py:1254–1267  ·  view source on GitHub ↗

Cell magics declared via a class, #2

(underscore_not_in_builtins)

Source from the content-addressed store, hash-verified

1252
1253
1254def test_cell_magic_class2(underscore_not_in_builtins):
1255 "Cell magics declared via a class, #2"
1256
1257 @magics_class
1258 class MyMagics2(Magics):
1259 @cell_magic("cellm4")
1260 def cellm33(self, line, cell):
1261 return line, cell
1262
1263 _ip.register_magics(MyMagics2)
1264 check_ident("cellm4")
1265 # Check that nothing is registered as 'cellm33'
1266 c33 = _ip.find_cell_magic("cellm33")
1267 assert c33 == None
1268
1269
1270def test_file():

Callers

nothing calls this directly

Calls 2

check_identFunction · 0.85
find_cell_magicMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…