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
+2
View File
@@ -94,6 +94,8 @@ CQ CQ hier ist DL1PZ mit einem allgemeinen Anruf, hier ist DL1PZ und hört.
[table:n_morsetelegrafie_morsecode_buchstaben:Morsecode (Buchstaben)]
</webmargin>
Das ist ein A in Morsecode: [morse:a], das finde ich ganz toll!
<webtip>
...
</webtip>
+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)