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

Function test_parse_output

tests/test_cli.py:53–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52
53def test_parse_output():
54 with tempfile.TemporaryDirectory() as tempdir:
55 path = pathlib.Path(tempdir).joinpath("test.md")
56 path.write_text("# a b c")
57 string_io = io.StringIO()
58 with redirect_stdout(string_io):
59 assert parse.main([str(path)]) == 0
60 assert string_io.getvalue() == "<h1>a b c</h1>\n"
61
62
63def test_stdin():

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…