style: reformat code with ruff

This commit is contained in:
Tim Grelka
2024-12-11 01:09:42 +01:00
parent 0b4ce5b8b8
commit 7ef19075ee
17 changed files with 132 additions and 126 deletions
+8 -9
View File
@@ -4,25 +4,24 @@ from renderer.fifty_ohm_html_renderer import FiftyOhmHtmlRenderer
from renderer.fifty_ohm_latex_renderer import FiftyOhmLaTeXRenderer
def test_comment_html() :
def test_comment_html():
assertions = {
"%Comment\nBar" : "<p>Bar</p>\n",
"%Comment\nBar": "<p>Bar</p>\n",
# TODO: This test is not working as expected. The comment should be removed
#"%Comment\n" : "a",
"Foo\n%Comment\nBar" : "<p>Foo\nBar</p>\n",
# "%Comment\n" : "a",
"Foo\n%Comment\nBar": "<p>Foo\nBar</p>\n",
}
for assertion in assertions:
assert mistletoe.markdown(assertion, FiftyOhmHtmlRenderer) == assertions[assertion]
def test_comment_latex() :
def test_comment_latex():
assertions = {
"%Comment\nBar" : "\nBar\n",
"%Comment\nBar": "\nBar\n",
# TODO: This test is not working as expected. The comment should be removed
#"%Comment\n" : "a",
"Foo\n%Comment\nBar" : "\nFoo\nBar\n",
# "%Comment\n" : "a",
"Foo\n%Comment\nBar": "\nFoo\nBar\n",
}
for assertion in assertions: