diff --git a/.gitignore b/.gitignore index 82f9275..134cd7a 100644 --- a/.gitignore +++ b/.gitignore @@ -160,3 +160,7 @@ cython_debug/ # 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. #.idea/ + +test/acceptanceTest.html +.DS_Store +.envrc diff --git a/test/acceptanceTest.md b/test/acceptanceTest.md index 715c69a..5148735 100644 --- a/test/acceptanceTest.md +++ b/test/acceptanceTest.md @@ -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)] +Das ist ein A in Morsecode: [morse:a], das finde ich ganz toll! + ... diff --git a/test/test_html.py b/test/test_html.py new file mode 100644 index 0000000..8c2dc42 --- /dev/null +++ b/test/test_html.py @@ -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) \ No newline at end of file