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

Method test_updating_namespace_complete

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

Source from the content-addressed store, hash-verified

473
474 # 3. Edge cases
475 def test_updating_namespace_complete(self):
476 self.repl = FakeRepl(
477 {"autocomplete_mode": autocomplete.AutocompleteModes.SIMPLE}
478 )
479 self.set_input_line("foo")
480 self.repl.push("foobar = 2")
481
482 self.assertTrue(self.repl.complete())
483 self.assertTrue(hasattr(self.repl.matches_iter, "matches"))
484 self.assertEqual(self.repl.matches_iter.matches, ["foobar"])
485
486 def test_file_should_not_appear_in_complete(self):
487 self.repl = FakeRepl(

Callers

nothing calls this directly

Calls 4

set_input_lineMethod · 0.95
FakeReplClass · 0.85
pushMethod · 0.45
completeMethod · 0.45

Tested by

no test coverage detected