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

Method test_line_magics

IPython/core/tests/test_completer.py:621–627  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

619 nt.assert_equal(kwd, ["ncall", "resume", "nsplit"])
620
621 def test_line_magics(self):
622 ip = get_ipython()
623 c = ip.Completer
624 s, matches = c.complete(None, "lsmag")
625 nt.assert_in("%lsmagic", matches)
626 s, matches = c.complete(None, "%lsmag")
627 nt.assert_in("%lsmagic", matches)
628
629 def test_cell_magics(self):
630 from IPython.core.magic import register_cell_magic

Callers

nothing calls this directly

Calls 2

get_ipythonFunction · 0.90
completeMethod · 0.45

Tested by

no test coverage detected