()
| 69 | |
| 70 | |
| 71 | def 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 | |
| 83 | def test_interactive_render(): |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…