MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / setUp

Method setUp

tests/test_pydev_ipython_011.py:29–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27@pytest.mark.skipif(not has_ipython, reason="IPython not available")
28class TestBase(unittest.TestCase):
29 def setUp(self):
30 from _pydev_bundle.pydev_ipython_console_011 import get_pydev_frontend
31
32 # PyDevFrontEnd depends on singleton in IPython, so you
33 # can't make multiple versions. So we reuse self.front_end for
34 # all the tests
35 self.front_end = get_pydev_frontend(get_localhost(), 0)
36
37 from pydev_ipython.inputhook import set_return_control_callback
38
39 set_return_control_callback(lambda: True)
40 self.front_end.clear_buffer()
41
42 def tearDown(self):
43 pass

Callers

nothing calls this directly

Calls 3

get_pydev_frontendFunction · 0.90
get_localhostFunction · 0.90
clear_bufferMethod · 0.80

Tested by

no test coverage detected