fix: tests

This commit is contained in:
Matthias Jung
2026-02-07 00:02:19 +01:00
parent efa5edb8a8
commit e54f041a93
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -31,10 +31,10 @@ def parse_katalog():
env = Environment(loader=FileSystemLoader("templates/html"))
question_template = env.get_template("question.html")
questions = parse_katalog()
def question_stub(number):
questions = parse_katalog()
"""Combines the original question dataset from BNetzA with our internal metadata"""
with open(conf.p_data_metadata) as metadata_file:
metadata = json.load(metadata_file)
@@ -72,7 +72,7 @@ def question_stub(number):
def include_stub(include):
with open(f"data/git_content/contents/html/{include}.html") as file:
with open(conf.p_data_html / f"{include}.html") as file:
return file.read()
+1 -1
View File
@@ -47,6 +47,7 @@ def filter_shuffle_answers(seq):
def question_stub(number):
questions = parse_katalog()
"""Combines the original question dataset from BNetzA with our internal metadata"""
with open(conf.p_data_metadata) as metadata_file:
metadata = json.load(metadata_file)
@@ -87,7 +88,6 @@ env = Environment(loader=FileSystemLoader("templates/"))
env.filters["shuffle_answers"] = filter_shuffle_answers
question_template = env.get_template("slide/question.html")
slide_template = env.get_template("slide/slide.html")
questions = parse_katalog()
@pytest.mark.skip("Requires special files")