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

Method test_simple_global_complete

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

Source from the content-addressed store, hash-verified

391 # COMPLETE TESTS
392 # 1. Global tests
393 def test_simple_global_complete(self):
394 self.repl = FakeRepl(
395 {"autocomplete_mode": autocomplete.AutocompleteModes.SIMPLE}
396 )
397 self.set_input_line("d")
398
399 self.assertTrue(self.repl.complete())
400 self.assertTrue(hasattr(self.repl.matches_iter, "matches"))
401 self.assertEqual(
402 self.repl.matches_iter.matches,
403 ["def", "del", "delattr(", "dict(", "dir(", "divmod("],
404 )
405
406 def test_substring_global_complete(self):
407 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