diff --git a/tests/sphinx_new_tab_link/test_build_dirhtml.py b/tests/sphinx_new_tab_link/test_build_dirhtml.py index 0d94518..f052a01 100644 --- a/tests/sphinx_new_tab_link/test_build_dirhtml.py +++ b/tests/sphinx_new_tab_link/test_build_dirhtml.py @@ -1,5 +1,3 @@ -from io import StringIO - import pytest from bs4 import BeautifulSoup from sphinx.testing.util import SphinxTestApp @@ -32,11 +30,7 @@ ) @pytest.mark.sphinx("dirhtml", testroot="default") def test_should_open_new_tab( - app: SphinxTestApp, - status: StringIO, - warning: StringIO, - index: int, - expected_url: str, + app: SphinxTestApp, index: int, expected_url: str ): app.build() html = (app.outdir / "index.html").read_text() @@ -51,9 +45,7 @@ def test_should_open_new_tab( @pytest.mark.sphinx("dirhtml", testroot="default") -def test_internal_link_should_not_open_new_tab( - app: SphinxTestApp, status: StringIO, warning: StringIO -): +def test_internal_link_should_not_open_new_tab(app: SphinxTestApp): app.build() html = (app.outdir / "index.html").read_text() soup = BeautifulSoup(html, "html.parser") diff --git a/tests/sphinx_new_tab_link/test_build_html.py b/tests/sphinx_new_tab_link/test_build_html.py index d6be669..0892cc2 100644 --- a/tests/sphinx_new_tab_link/test_build_html.py +++ b/tests/sphinx_new_tab_link/test_build_html.py @@ -1,5 +1,3 @@ -from io import StringIO - import pytest from bs4 import BeautifulSoup from sphinx.testing.util import SphinxTestApp @@ -32,11 +30,7 @@ ) @pytest.mark.sphinx("html", testroot="default") def test_should_open_new_tab( - app: SphinxTestApp, - status: StringIO, - warning: StringIO, - index: int, - expected_url: str, + app: SphinxTestApp, index: int, expected_url: str ): app.build() html = (app.outdir / "index.html").read_text() @@ -51,9 +45,7 @@ def test_should_open_new_tab( @pytest.mark.sphinx("html", testroot="default") -def test_internal_link_should_not_open_new_tab( - app: SphinxTestApp, status: StringIO, warning: StringIO -): +def test_internal_link_should_not_open_new_tab(app: SphinxTestApp): app.build() html = (app.outdir / "index.html").read_text() soup = BeautifulSoup(html, "html.parser") diff --git a/tests/sphinx_new_tab_link/test_build_singlehtml.py b/tests/sphinx_new_tab_link/test_build_singlehtml.py index ba681e5..556c078 100644 --- a/tests/sphinx_new_tab_link/test_build_singlehtml.py +++ b/tests/sphinx_new_tab_link/test_build_singlehtml.py @@ -1,5 +1,3 @@ -from io import StringIO - import pytest from bs4 import BeautifulSoup from sphinx.testing.util import SphinxTestApp @@ -32,11 +30,7 @@ ) @pytest.mark.sphinx("singlehtml", testroot="default") def test_should_open_new_tab( - app: SphinxTestApp, - status: StringIO, - warning: StringIO, - index: int, - expected_url: str, + app: SphinxTestApp, index: int, expected_url: str ): app.build() html = (app.outdir / "index.html").read_text() @@ -51,9 +45,7 @@ def test_should_open_new_tab( @pytest.mark.sphinx("singlehtml", testroot="default") -def test_internal_link_should_not_open_new_tab( - app: SphinxTestApp, status: StringIO, warning: StringIO -): +def test_internal_link_should_not_open_new_tab(app: SphinxTestApp): app.build() html = (app.outdir / "index.html").read_text() soup = BeautifulSoup(html, "html.parser")