fix: force download/pull of data for tests
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user