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

Method set_input_line

bpython/test/test_repl.py:298–301  ·  view source on GitHub ↗

Set current input line of the test REPL.

(self, line)

Source from the content-addressed store, hash-verified

296 self.repl = FakeRepl()
297
298 def set_input_line(self, line):
299 """Set current input line of the test REPL."""
300 self.repl.current_line = line
301 self.repl.cursor_offset = len(line)
302
303 def assert_get_source_error_for_current_function(self, func, msg):
304 self.repl.current_func = func

Callers 3

test_current_functionMethod · 0.95
test_current_lineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected