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

Function test_stdin

tests/test_cli.py:63–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62
63def test_stdin():
64 with patch("sys.stdin", io.StringIO("# a b c")):
65 string_io = io.StringIO()
66 with redirect_stdout(string_io):
67 assert parse.main(["--stdin"]) == 0
68 assert string_io.getvalue() == "<h1>a b c</h1>\n"
69
70
71def test_multiple_files():

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…