feature: add acceptance test
This commit is contained in:
@@ -160,3 +160,7 @@ cython_debug/
|
|||||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
#.idea/
|
#.idea/
|
||||||
|
|
||||||
|
test/acceptanceTest.html
|
||||||
|
.DS_Store
|
||||||
|
.envrc
|
||||||
|
|||||||
@@ -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)]
|
[table:n_morsetelegrafie_morsecode_buchstaben:Morsecode (Buchstaben)]
|
||||||
</webmargin>
|
</webmargin>
|
||||||
|
|
||||||
|
Das ist ein A in Morsecode: [morse:a], das finde ich ganz toll!
|
||||||
|
|
||||||
<webtip>
|
<webtip>
|
||||||
...
|
...
|
||||||
</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