%edit on interactively defined objects
()
| 1776 | |
| 1777 | |
| 1778 | def test_edit_interactive(): |
| 1779 | """%edit on interactively defined objects""" |
| 1780 | ip = get_ipython() |
| 1781 | n = ip.execution_count |
| 1782 | ip.run_cell("def foo(): return 1", store_history=True) |
| 1783 | |
| 1784 | with pytest.raises(code.InteractivelyDefined) as e: |
| 1785 | _run_edit_test("foo") |
| 1786 | assert e.value.index == n |
| 1787 | |
| 1788 | |
| 1789 | def test_edit_cell(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…