test: skip tests dependent on external files
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
|
import pytest
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
from jinja2 import Environment, FileSystemLoader
|
from jinja2 import Environment, FileSystemLoader
|
||||||
from mistletoe import Document
|
from mistletoe import Document
|
||||||
@@ -76,6 +77,8 @@ def include_stub(include):
|
|||||||
return includes.get(include)
|
return includes.get(include)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip("Requires special files")
|
||||||
|
@pytest.mark.html
|
||||||
def test_html(capsys):
|
def test_html(capsys):
|
||||||
with capsys.disabled():
|
with capsys.disabled():
|
||||||
with open("test/acceptanceTest.md") as file:
|
with open("test/acceptanceTest.md") as file:
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import json
|
import json
|
||||||
import random
|
import random
|
||||||
|
|
||||||
|
import pytest
|
||||||
from jinja2 import Environment, FileSystemLoader
|
from jinja2 import Environment, FileSystemLoader
|
||||||
from mistletoe import Document
|
from mistletoe import Document
|
||||||
|
|
||||||
@@ -88,6 +89,8 @@ slide_template = env.get_template("slide/slide.html")
|
|||||||
questions = parse_katalog()
|
questions = parse_katalog()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip("Requires special files")
|
||||||
|
@pytest.mark.slides
|
||||||
def test_html_slides(capsys):
|
def test_html_slides(capsys):
|
||||||
with capsys.disabled():
|
with capsys.disabled():
|
||||||
with open("test/acceptanceTestSlides.md") as file:
|
with open("test/acceptanceTestSlides.md") as file:
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ def test_question_html():
|
|||||||
assert renderer.render(Document(assertion)) == assertions[assertion]
|
assert renderer.render(Document(assertion)) == assertions[assertion]
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip("Requires special files")
|
||||||
@pytest.mark.html
|
@pytest.mark.html
|
||||||
def test_question_translation_html():
|
def test_question_translation_html():
|
||||||
assertions = {
|
assertions = {
|
||||||
|
|||||||
Reference in New Issue
Block a user