Pull request #17: Feature/acceptance test
Merge in FRAG/50ohm.de from feature/acceptance-test to main * commit 'b469dab4b40653e42247f7889b0f9eb6947d6113': feature: add acceptance test
This commit is contained in:
committed by
Tim Grelka DA2TG
commit
175dc18421
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user