MCPcopy Create free account
hub / github.com/cdgriffith/Box / fake_ipython

Function fake_ipython

test/test_coverage_paths.py:18–22  ·  view source on GitHub ↗
(monkeypatch)

Source from the content-addressed store, hash-verified

16
17@pytest.fixture
18def fake_ipython(monkeypatch):
19 module = types.ModuleType("IPython")
20 module.get_ipython = lambda: object()
21 monkeypatch.setitem(sys.modules, "IPython", module)
22 return module
23
24
25class TestBoxPaths:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected