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

Function test_hist_pof

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

Source from the content-addressed store, hash-verified

276 """
277
278def test_hist_pof():
279 ip = get_ipython()
280 ip.run_cell(u"1+2", store_history=True)
281 #raise Exception(ip.history_manager.session_number)
282 #raise Exception(list(ip.history_manager._get_range_session()))
283 with TemporaryDirectory() as td:
284 tf = os.path.join(td, 'hist.py')
285 ip.run_line_magic('history', '-pof %s' % tf)
286 assert os.path.isfile(tf)
287
288
289@dec.skip_without('sqlite3')

Callers

nothing calls this directly

Calls 3

get_ipythonFunction · 0.90
run_line_magicMethod · 0.80
run_cellMethod · 0.45

Tested by

no test coverage detected