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

Function test_multiple_files

tests/test_cli.py:71–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70
71def test_multiple_files():
72 with tempfile.TemporaryDirectory() as tempdir:
73 path1 = pathlib.Path(tempdir).joinpath("test1.md")
74 path1.write_text("# file 1")
75 path2 = pathlib.Path(tempdir).joinpath("test2.md")
76 path2.write_text("* file 2")
77 string_io = io.StringIO()
78 with redirect_stdout(string_io):
79 assert parse.main([str(path1), str(path2)]) == 0
80 assert string_io.getvalue() == "<h1>file 1</h1>\n<ul>\n<li>file 2</li>\n</ul>\n"
81
82
83def test_interactive_render():

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…