()
| 51 | |
| 52 | |
| 53 | def 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 | |
| 63 | def test_stdin(): |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…