MCPcopy Create free account
hub / github.com/executablebooks/markdown-it-py / test_interactive

Function test_interactive

tests/test_cli.py:38–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def test_interactive():
39 def mock_input(prompt):
40 raise KeyboardInterrupt
41
42 with patch("builtins.print") as patched, patch("builtins.input", mock_input):
43 parse.interactive()
44 patched.assert_called()
45
46
47def test_main_no_args_is_interactive():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…