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

Method setUp

bpython/test/test_curtsies_repl.py:110–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

108
109class TestCurtsiesReplTab(TestCase):
110 def setUp(self):
111 self.repl = create_repl()
112 self.repl.matches_iter = MagicIterMock()
113
114 def add_matches(*args, **kwargs):
115 self.repl.matches_iter.matches = ["aaa", "aab", "aac"]
116
117 self.repl.complete = mock.Mock(
118 side_effect=add_matches, return_value=True
119 )
120
121 def test_tab_with_no_matches_triggers_completion(self):
122 self.repl._current_line = " asdf"

Callers

nothing calls this directly

Calls 2

MagicIterMockClass · 0.90
create_replFunction · 0.70

Tested by

no test coverage detected