()
| 733 | |
| 734 | |
| 735 | def test_notebook_export_json(): |
| 736 | _ip = get_ipython() |
| 737 | _ip.history_manager.reset() # Clear any existing history. |
| 738 | cmds = [u"a=1", u"def b():\n return a**2", u"print('noël, été', b())"] |
| 739 | for i, cmd in enumerate(cmds, start=1): |
| 740 | _ip.history_manager.store_inputs(i, cmd) |
| 741 | with TemporaryDirectory() as td: |
| 742 | outfile = os.path.join(td, "nb.ipynb") |
| 743 | _ip.magic("notebook -e %s" % outfile) |
| 744 | |
| 745 | |
| 746 | class TestEnv(TestCase): |
nothing calls this directly
no test coverage detected