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

Function inject

IPython/conftest.py:56–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54# yields. so for now execute at import time.
55#@pytest.fixture(autouse=True, scope='session')
56def inject():
57
58 builtins.get_ipython = get_ipython
59 builtins._ip = get_ipython()
60 builtins.ip = get_ipython()
61 builtins.ip.system = types.MethodType(xsys, ip)
62 builtins.ip.builtin_trap.activate()
63 from .core import page
64
65 page.pager_page = nopage
66 # yield
67
68
69inject()

Callers 1

conftest.pyFile · 0.85

Calls 2

activateMethod · 0.80
get_ipythonFunction · 0.70

Tested by

no test coverage detected