MCPcopy Index your code
hub / github.com/ipython/ipython / test_2

Method test_2

tests/test_completerlib.py:55–60  ·  view source on GitHub ↗

Test magic_run_completer, should match one alternative

(self)

Source from the content-addressed store, hash-verified

53 self.assertEqual(match, {"a.py", "aao.py", "adir/"})
54
55 def test_2(self):
56 """Test magic_run_completer, should match one alternative"""
57 event = MockEvent("%run aa")
58 mockself = None
59 match = set(magic_run_completer(mockself, event))
60 self.assertEqual(match, {"aao.py"})
61
62 def test_3(self):
63 """Test magic_run_completer with unterminated " """

Callers

nothing calls this directly

Calls 2

magic_run_completerFunction · 0.90
MockEventClass · 0.85

Tested by

no test coverage detected