From f88f7d9f0869df62b764a87ea6c4eeaba13dc40d Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Sun, 1 Feb 2026 22:29:35 +0100 Subject: [PATCH] fix: try to fix tests --- test/test_html.py | 5 +++-- test/test_html_slides.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/test_html.py b/test/test_html.py index 38b17f2..1725e0d 100644 --- a/test/test_html.py +++ b/test/test_html.py @@ -7,6 +7,9 @@ from mistletoe import Document import src.download as download from renderer.fifty_ohm_html_renderer import FiftyOhmHtmlRenderer +dl = download.Download() +dl.download_git_content() + def parse_katalog(): with open("data/git_content/contents/questions/fragenkatalog3b.json") as fragenkatalog_file: @@ -77,8 +80,6 @@ def include_stub(include): @pytest.mark.skip("Requires special files") @pytest.mark.html def test_html(capsys): - dl = download.Download() - dl.download_git_content() with capsys.disabled(): with open("test/acceptanceTest.md") as file: content = file.read() diff --git a/test/test_html_slides.py b/test/test_html_slides.py index fb08ca3..b0b638a 100644 --- a/test/test_html_slides.py +++ b/test/test_html_slides.py @@ -8,6 +8,9 @@ from mistletoe import Document import src.download as download from renderer.fifty_ohm_html_slide_renderer import FiftyOhmHtmlSlideRenderer +dl = download.Download() +dl.download_git_content() + def parse_katalog(): with open("data/git_content/contents/questions/fragenkatalog3b.json") as fragenkatalog_file: @@ -91,8 +94,6 @@ questions = parse_katalog() @pytest.mark.skip("Requires special files") @pytest.mark.slide def test_html_slides(capsys): - dl = download.Download() - dl.download_git_content() with capsys.disabled(): with open("test/acceptanceTestSlides.md") as file: content = file.read()