MCPcopy Index your code
hub / github.com/bpython/bpython / test_substring_global_complete

Method test_substring_global_complete

bpython/test/test_repl.py:406–416  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

404 )
405
406 def test_substring_global_complete(self):
407 self.repl = FakeRepl(
408 {"autocomplete_mode": autocomplete.AutocompleteModes.SUBSTRING}
409 )
410 self.set_input_line("time")
411
412 self.assertTrue(self.repl.complete())
413 self.assertTrue(hasattr(self.repl.matches_iter, "matches"))
414 self.assertEqual(
415 self.repl.matches_iter.matches, ["RuntimeError(", "RuntimeWarning("]
416 )
417
418 def test_fuzzy_global_complete(self):
419 self.repl = FakeRepl(

Callers

nothing calls this directly

Calls 3

set_input_lineMethod · 0.95
FakeReplClass · 0.85
completeMethod · 0.45

Tested by

no test coverage detected