summaryrefslogtreecommitdiff
path: root/tests/test_build_linkcheck.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_build_linkcheck.py')
-rw-r--r--tests/test_build_linkcheck.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/test_build_linkcheck.py b/tests/test_build_linkcheck.py
index 908319e6b..88cf2aee1 100644
--- a/tests/test_build_linkcheck.py
+++ b/tests/test_build_linkcheck.py
@@ -12,13 +12,14 @@ import http.server
import json
import re
from unittest import mock
+
import pytest
from utils import http_server
@pytest.mark.sphinx('linkcheck', testroot='linkcheck', freshenv=True)
-def test_defaults(app, status, warning):
+def test_defaults(app):
app.builder.build_all()
assert (app.outdir / 'output.txt').exists()
@@ -39,7 +40,7 @@ def test_defaults(app, status, warning):
@pytest.mark.sphinx('linkcheck', testroot='linkcheck', freshenv=True)
-def test_defaults_json(app, status, warning):
+def test_defaults_json(app):
app.builder.build_all()
assert (app.outdir / 'output.json').exists()
@@ -100,7 +101,7 @@ def test_defaults_json(app, status, warning):
'https://www.google.com/image2.png',
'path/to/notfound']
})
-def test_anchors_ignored(app, status, warning):
+def test_anchors_ignored(app):
app.builder.build_all()
assert (app.outdir / 'output.txt').exists()
@@ -110,7 +111,7 @@ def test_anchors_ignored(app, status, warning):
assert not content
@pytest.mark.sphinx('linkcheck', testroot='linkcheck-localserver', freshenv=True)
-def test_raises_for_invalid_status(app, status, warning):
+def test_raises_for_invalid_status(app):
class InternalServerErrorHandler(http.server.BaseHTTPRequestHandler):
def do_GET(self):
self.send_error(500, "Internal Server Error")
@@ -132,7 +133,7 @@ def test_raises_for_invalid_status(app, status, warning):
(r'.+google\.com.+', 'authinfo2'),
]
})
-def test_auth(app, status, warning):
+def test_auth(app):
mock_req = mock.MagicMock()
mock_req.return_value = 'fake-response'
@@ -160,7 +161,7 @@ def test_auth(app, status, warning):
"X-Secret": "open sesami",
}
}})
-def test_linkcheck_request_headers(app, status, warning):
+def test_linkcheck_request_headers(app):
mock_req = mock.MagicMock()
mock_req.return_value = 'fake-response'