fix: tests
This commit is contained in:
+2
-2
@@ -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()
|
||||
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user