MCPcopy Create free account
hub / github.com/bpython/bpython / completer

Method completer

bpython/test/test_autocomplete.py:84–87  ·  view source on GitHub ↗
(self, matches)

Source from the content-addressed store, hash-verified

82
83class TestCumulativeCompleter(unittest.TestCase):
84 def completer(self, matches):
85 mock_completer = autocomplete.BaseCompletionType()
86 mock_completer.matches = mock.Mock(return_value=matches)
87 return mock_completer
88
89 def test_no_completers_fails(self):
90 with self.assertRaises(ValueError):

Calls

no outgoing calls

Tested by

no test coverage detected