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

Function test_ls_magic

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

Source from the content-addressed store, hash-verified

1169 ip.run_line_magic('bookmark', '-d bmname')
1170
1171def test_ls_magic():
1172 ip = get_ipython()
1173 json_formatter = ip.display_formatter.formatters['application/json']
1174 json_formatter.enabled = True
1175 lsmagic = ip.magic('lsmagic')
1176 with warnings.catch_warnings(record=True) as w:
1177 j = json_formatter(lsmagic)
1178 nt.assert_equal(sorted(j), ['cell', 'line'])
1179 nt.assert_equal(w, []) # no warnings
1180
1181def test_strip_initial_indent():
1182 def sii(s):

Callers

nothing calls this directly

Calls 2

get_ipythonFunction · 0.90
magicMethod · 0.45

Tested by

no test coverage detected