(entry)
| 20 | |
| 21 | @pytest.mark.parametrize("entry", json.loads(TESTS_INPUT.read_text())) |
| 22 | def test_spec(entry): |
| 23 | md = MarkdownIt("commonmark") |
| 24 | output = md.render(entry["markdown"]) |
| 25 | expected = entry["html"] |
| 26 | |
| 27 | if entry["example"] == 596: |
| 28 | # this doesn't have any bearing on the output |
| 29 | output = output.replace("mailto", "MAILTO") |
| 30 | if entry["example"] in [218, 239, 240]: |
| 31 | # this doesn't have any bearing on the output |
| 32 | output = output.replace( |
| 33 | "<blockquote></blockquote>", "<blockquote>\n</blockquote>" |
| 34 | ) |
| 35 | |
| 36 | assert output == expected |
nothing calls this directly
no test coverage detected
searching dependent graphs…