()
| 15 | |
| 16 | |
| 17 | def get_ipython(): |
| 18 | from IPython.terminal.interactiveshell import TerminalInteractiveShell |
| 19 | |
| 20 | if TerminalInteractiveShell._instance: |
| 21 | return TerminalInteractiveShell.instance() |
| 22 | |
| 23 | config = tools.default_config() |
| 24 | config.TerminalInteractiveShell.simple_prompt = True |
| 25 | |
| 26 | # Create and initialize our test-friendly IPython instance. |
| 27 | shell = TerminalInteractiveShell.instance(config=config) |
| 28 | return shell |
| 29 | |
| 30 | |
| 31 | @pytest.fixture(scope="session", autouse=True) |
no outgoing calls
no test coverage detected
searching dependent graphs…