MCPcopy Index your code
hub / github.com/python/cpython / add_input

Method add_input

Lib/test/test_remote_pdb.py:62–64  ·  view source on GitHub ↗

Add input that will be returned by readline.

(self, data: dict)

Source from the content-addressed store, hash-verified

60 pass
61
62 def add_input(self, data: dict) -> None:
63 """Add input that will be returned by readline."""
64 self.input_queue.append(json.dumps(data).encode() + b"\n")
65
66 def get_output(self) -> List[dict]:
67 """Get the output that was written by the object being tested."""

Callers 4

test_read_commandMethod · 0.80
test_completionMethod · 0.80
test_cmdloopMethod · 0.80

Calls 3

appendMethod · 0.45
encodeMethod · 0.45
dumpsMethod · 0.45

Tested by

no test coverage detected