From 0eb5942264f4b884fc0a2394d5f2b9b42c1dad04 Mon Sep 17 00:00:00 2001 From: ftnext Date: Mon, 9 Oct 2023 00:31:41 +0900 Subject: [PATCH] [refactor] Remove unused fixtures --- tests/sphinx_new_tab_link/test_build_dirhtml.py | 12 ++---------- tests/sphinx_new_tab_link/test_build_html.py | 12 ++---------- tests/sphinx_new_tab_link/test_build_singlehtml.py | 12 ++---------- 3 files changed, 6 insertions(+), 30 deletions(-) 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")