style: reformat files with ruff
This commit is contained in:
@@ -24,6 +24,7 @@ def test_question_html():
|
||||
for assertion in assertions:
|
||||
assert renderer.render(Document(assertion)) == assertions[assertion]
|
||||
|
||||
|
||||
@pytest.mark.html
|
||||
def test_question_translation_html():
|
||||
assertions = {
|
||||
@@ -34,7 +35,7 @@ def test_question_translation_html():
|
||||
}
|
||||
|
||||
def test_function(input):
|
||||
with open('data/metadata.json') as file:
|
||||
with open("data/metadata.json") as file:
|
||||
metadata = json.load(file)
|
||||
return metadata[f"{input}"].get("number")
|
||||
|
||||
@@ -53,7 +54,7 @@ def test_question_latex():
|
||||
}
|
||||
|
||||
def test_function(input):
|
||||
return "\\question{"+input+"}"
|
||||
return "\\question{" + input + "}"
|
||||
|
||||
with FiftyOhmLaTeXRenderer(test_function) as renderer:
|
||||
for assertion in assertions:
|
||||
|
||||
Reference in New Issue
Block a user