diff options
author | François Freitag <mail@franek.fr> | 2020-11-11 13:48:07 +0100 |
---|---|---|
committer | François Freitag <mail@franek.fr> | 2020-11-11 13:48:45 +0100 |
commit | c90eef1f674daac9b51b73662d0d6969f8ad31f7 (patch) | |
tree | 183d4d1068dc03a6b9f0f7307406f3ea64e83096 /tests/test_build_linkcheck.py | |
parent | 229e11c488fc1fbd15b0a209782aa94dc6abdf58 (diff) | |
download | sphinx-git-c90eef1f674daac9b51b73662d0d6969f8ad31f7.tar.gz |
linkcheck: Remove unused arguments from tests
Diffstat (limited to 'tests/test_build_linkcheck.py')
-rw-r--r-- | tests/test_build_linkcheck.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_build_linkcheck.py b/tests/test_build_linkcheck.py index 908319e6b..80beb71b7 100644 --- a/tests/test_build_linkcheck.py +++ b/tests/test_build_linkcheck.py @@ -18,7 +18,7 @@ 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 +39,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 +100,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 +110,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 +132,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 +160,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' |