Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ fake_input
Function
fake_input
tests/test_console.py:393–395 ·
view source on GitHub ↗
(prompt="")
Source
from the content-addressed store, hash-verified
391
392
def
test_input(monkeypatch, capsys) -> None:
393
def
fake_input(prompt=
""
):
394
console.file.write(prompt)
395
return
"bar"
396
397
monkeypatch.setattr(
"builtins.input"
, fake_input)
398
console = Console()
Callers
nothing calls this directly
Calls
1
write
Method · 0.45
Tested by
no test coverage detected