summaryrefslogtreecommitdiff
path: root/tests/test_markup.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_markup.py')
-rw-r--r--tests/test_markup.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_markup.py b/tests/test_markup.py
index ecc540fcf..01e3dd8ff 100644
--- a/tests/test_markup.py
+++ b/tests/test_markup.py
@@ -20,7 +20,7 @@ from sphinx.writers.html import HTML5Translator, HTMLWriter
from sphinx.writers.latex import LaTeXTranslator, LaTeXWriter
-@pytest.fixture
+@pytest.fixture()
def settings(app):
texescape.init() # otherwise done by the latex builder
with warnings.catch_warnings():
@@ -41,7 +41,7 @@ def settings(app):
domain_context.disable()
-@pytest.fixture
+@pytest.fixture()
def new_document(settings):
def create():
document = utils.new_document('test data', settings)
@@ -51,14 +51,14 @@ def new_document(settings):
return create
-@pytest.fixture
+@pytest.fixture()
def inliner(new_document):
document = new_document()
document.reporter.get_source_and_line = lambda line=1: ('dummy.rst', line)
return Struct(document=document, reporter=document.reporter)
-@pytest.fixture
+@pytest.fixture()
def parse(new_document):
def parse_(rst):
document = new_document()
@@ -89,7 +89,7 @@ class ForgivingLaTeXTranslator(LaTeXTranslator, ForgivingTranslator):
pass
-@pytest.fixture
+@pytest.fixture()
def verify_re_html(app, parse):
def verify(rst, html_expected):
document = parse(rst)
@@ -101,7 +101,7 @@ def verify_re_html(app, parse):
return verify
-@pytest.fixture
+@pytest.fixture()
def verify_re_latex(app, parse):
def verify(rst, latex_expected):
document = parse(rst)
@@ -116,7 +116,7 @@ def verify_re_latex(app, parse):
return verify
-@pytest.fixture
+@pytest.fixture()
def verify_re(verify_re_html, verify_re_latex):
def verify_re_(rst, html_expected, latex_expected):
if html_expected:
@@ -126,7 +126,7 @@ def verify_re(verify_re_html, verify_re_latex):
return verify_re_
-@pytest.fixture
+@pytest.fixture()
def verify(verify_re_html, verify_re_latex):
def verify_(rst, html_expected, latex_expected):
if html_expected:
@@ -136,7 +136,7 @@ def verify(verify_re_html, verify_re_latex):
return verify_
-@pytest.fixture
+@pytest.fixture()
def get_verifier(verify, verify_re):
v = {
'verify': verify,