feature: add acceptance test

This commit is contained in:
Prof. Dr. Matthias Jung DL9MJ
2024-12-08 13:31:59 +01:00
parent 0f8af3defa
commit b469dab4b4
3 changed files with 20 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import mistletoe
from renderer.fifty_ohm_html_renderer import FiftyOhmHtmlRenderer
def test_html(capsys) :
with capsys.disabled():
with open("test/acceptanceTest.md") as file:
content = file.read()
output = mistletoe.markdown(content, FiftyOhmHtmlRenderer)
with open("test/acceptanceTest.html", "w") as output_file:
output_file.write(output)