Skip to content

Commit

Permalink
[refactor] Remove unused fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
ftnext committed Oct 8, 2023
1 parent e43f4a2 commit 0eb5942
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 30 deletions.
12 changes: 2 additions & 10 deletions tests/sphinx_new_tab_link/test_build_dirhtml.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from io import StringIO

import pytest
from bs4 import BeautifulSoup
from sphinx.testing.util import SphinxTestApp
Expand Down Expand Up @@ -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()
Expand All @@ -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")
Expand Down
12 changes: 2 additions & 10 deletions tests/sphinx_new_tab_link/test_build_html.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from io import StringIO

import pytest
from bs4 import BeautifulSoup
from sphinx.testing.util import SphinxTestApp
Expand Down Expand Up @@ -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()
Expand All @@ -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")
Expand Down
12 changes: 2 additions & 10 deletions tests/sphinx_new_tab_link/test_build_singlehtml.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from io import StringIO

import pytest
from bs4 import BeautifulSoup
from sphinx.testing.util import SphinxTestApp
Expand Down Expand Up @@ -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()
Expand All @@ -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")
Expand Down

0 comments on commit 0eb5942

Please sign in to comment.