fix: force download/pull of data for tests

This commit is contained in:
Matthias Jung
2026-02-01 22:13:01 +01:00
parent 2ee62ac9c6
commit 4165fc338c
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ class Config:
self.content_access_token = self.get_config_value("directus_content_api_key")
self.content_base_url = self.get_config_value("directus_content_base_url", "https://redaktion.50ohm.de/")
self.git_url = self.get_config_value("git_url", "git@github.com:DARC-e-V/50ohm-contents-dl.git")
self.git_url = self.get_config_value("git_url", "https://github.com/DARC-e-V/50ohm-contents-dl.git")
self.p_fragenkatalog = Path(
self.get_config_value("path_fragenkatalog", "./data/git_content/contents/questions/fragenkatalog3b.json")
+3
View File
@@ -4,6 +4,7 @@ import pytest
from jinja2 import Environment, FileSystemLoader
from mistletoe import Document
import src.download as download
from renderer.fifty_ohm_html_renderer import FiftyOhmHtmlRenderer
@@ -76,6 +77,8 @@ 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()
+3
View File
@@ -5,6 +5,7 @@ import pytest
from jinja2 import Environment, FileSystemLoader
from mistletoe import Document
import src.download as download
from renderer.fifty_ohm_html_slide_renderer import FiftyOhmHtmlSlideRenderer
@@ -90,6 +91,8 @@ 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()