MCPcopy
hub / github.com/beetbox/beets / addinput

Method addinput

beets/test/_common.py:163–165  ·  view source on GitHub ↗

Simulate user typing into stdin.

(self, text: str)

Source from the content-addressed store, hash-verified

161 monkeypatch.setattr("sys.stdin", self.stdin)
162
163 def addinput(self, text: str) -> None:
164 """Simulate user typing into stdin."""
165 self.stdin.add(text)
166
167 def getoutput(self) -> str:
168 """Get the standard output captured so far.

Callers 15

test_plugin_callbackMethod · 0.80
test_create_yesMethod · 0.80
test_create_noMethod · 0.80
test_nonexistant_dbMethod · 0.80
_updateMethod · 0.80
modify_inpMethod · 0.80

Calls 1

addMethod · 0.45

Tested by 15

test_plugin_callbackMethod · 0.64
test_create_yesMethod · 0.64
test_create_noMethod · 0.64
test_nonexistant_dbMethod · 0.64
_updateMethod · 0.64
modify_inpMethod · 0.64