Simulate user typing into stdin.
(self, text: str)
| 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. |