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

Method set_input_line

bpython/test/test_repl.py:174–177  ·  view source on GitHub ↗

Set current input line of the test REPL.

(self, line)

Source from the content-addressed store, hash-verified

172 self.repl.push("\n", False)
173
174 def set_input_line(self, line):
175 """Set current input line of the test REPL."""
176 self.repl.current_line = line
177 self.repl.cursor_offset = len(line)
178
179 def test_func_name(self):
180 for line, expected_name in [

Callers 10

test_func_nameMethod · 0.95
test_kw_arg_positionMethod · 0.95
test_lambda_positionMethod · 0.95
test_issue127Method · 0.95
test_nonexistent_nameMethod · 0.95
test_issue572Method · 0.95
test_issue583Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected