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

Method test_fuzzy_global_complete

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

Source from the content-addressed store, hash-verified

416 )
417
418 def test_fuzzy_global_complete(self):
419 self.repl = FakeRepl(
420 {"autocomplete_mode": autocomplete.AutocompleteModes.FUZZY}
421 )
422 self.set_input_line("doc")
423
424 self.assertTrue(self.repl.complete())
425 self.assertTrue(hasattr(self.repl.matches_iter, "matches"))
426 self.assertEqual(
427 self.repl.matches_iter.matches,
428 ["ChildProcessError(", "UnboundLocalError(", "__doc__"],
429 )
430
431 # 2. Attribute tests
432 def test_simple_attribute_complete(self):

Callers

nothing calls this directly

Calls 3

set_input_lineMethod · 0.95
FakeReplClass · 0.85
completeMethod · 0.45

Tested by

no test coverage detected