18 lines
584 B
Python
18 lines
584 B
Python
from mistletoe import Document
|
|
|
|
from renderer.fifty_ohm_html_renderer import FiftyOhmHtmlRenderer
|
|
|
|
|
|
def question_stub(input):
|
|
return f"<question>{input}</question>" # TODO implement this stub
|
|
|
|
|
|
def test_html(capsys):
|
|
with capsys.disabled():
|
|
with open("test/acceptanceTest.md") as file:
|
|
content = file.read()
|
|
with FiftyOhmHtmlRenderer(question_stub) as renderer:
|
|
output = renderer.render(Document(content))
|
|
with open("test/acceptanceTest.html", "w") as output_file:
|
|
output_file.write(output)
|