Remove unused monkeypatch fixtures (#12841)

This commit is contained in:
Adam Dangoor 2024-08-31 07:48:08 +01:00 committed by GitHub
parent 7b6f76b61c
commit c00388f509
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 5 deletions

View File

@ -25,7 +25,6 @@ if TYPE_CHECKING:
def test_instantiation( def test_instantiation(
tmp_path_factory: pytest.TempPathFactory, tmp_path_factory: pytest.TempPathFactory,
rootdir: str | os.PathLike[str] | None, rootdir: str | os.PathLike[str] | None,
monkeypatch: pytest.MonkeyPatch,
) -> None: ) -> None:
# Given # Given
src_dir = tmp_path_factory.getbasetemp() / 'root' src_dir = tmp_path_factory.getbasetemp() / 'root'

View File

@ -762,7 +762,7 @@ def source_date_year(request, monkeypatch):
@pytest.mark.sphinx('html', testroot='copyright-multiline') @pytest.mark.sphinx('html', testroot='copyright-multiline')
def test_multi_line_copyright(source_date_year, app, monkeypatch): def test_multi_line_copyright(source_date_year, app):
app.build(force_all=True) app.build(force_all=True)
content = (app.outdir / 'index.html').read_text(encoding='utf-8') content = (app.outdir / 'index.html').read_text(encoding='utf-8')

View File

@ -809,9 +809,7 @@ class _MockUnixClock(_MockClock):
@pytest.fixture @pytest.fixture
def mock_time_and_i18n( def mock_time_and_i18n() -> tuple[pytest.MonkeyPatch, _MockClock]:
monkeypatch: pytest.MonkeyPatch,
) -> tuple[pytest.MonkeyPatch, _MockClock]:
from sphinx.util.i18n import CatalogInfo from sphinx.util.i18n import CatalogInfo
# save the 'original' definition # save the 'original' definition