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

Method test_file_should_not_appear_in_complete

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

Source from the content-addressed store, hash-verified

484 self.assertEqual(self.repl.matches_iter.matches, ["foobar"])
485
486 def test_file_should_not_appear_in_complete(self):
487 self.repl = FakeRepl(
488 {"autocomplete_mode": autocomplete.AutocompleteModes.SIMPLE}
489 )
490 self.set_input_line("_")
491 self.assertTrue(self.repl.complete())
492 self.assertTrue(hasattr(self.repl.matches_iter, "matches"))
493 self.assertNotIn("__file__", self.repl.matches_iter.matches)
494
495 # 4. Parameter names
496 def test_paremeter_name_completion(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