refactor: avoid parsing document twice for figure numbers
This commit is contained in:
+2
-3
@@ -1,8 +1,7 @@
|
||||
import mistletoe
|
||||
import pytest
|
||||
|
||||
from renderer.fifty_ohm_html_renderer import FiftyOhmHtmlRenderer
|
||||
from test.util import paragraph
|
||||
from test.util import paragraph, render_html
|
||||
|
||||
|
||||
@pytest.mark.html
|
||||
@@ -17,4 +16,4 @@ def test_morse_html():
|
||||
}
|
||||
|
||||
for assertion in assertions:
|
||||
assert mistletoe.markdown(assertion, FiftyOhmHtmlRenderer) == paragraph(assertions[assertion])
|
||||
assert render_html(assertion) == paragraph(assertions[assertion])
|
||||
|
||||
Reference in New Issue
Block a user