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

Function test_cellmagic

IPython/core/tests/test_inputtransformer.py:434–442  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

432
433
434def test_cellmagic():
435 for example in syntax_ml['cellmagic']:
436 transform_checker(example, ipt.cellmagic)
437
438 line_example = [(u'%%bar 123', None),
439 (u'hello', None),
440 (u'' , u_fmt("get_ipython().run_cell_magic('bar', '123', 'hello')")),
441 ]
442 transform_checker(line_example, ipt.cellmagic, end_on_blank_line=True)
443
444def test_has_comment():
445 tests = [('text', False),

Callers

nothing calls this directly

Calls 1

transform_checkerFunction · 0.85

Tested by

no test coverage detected