From c00388f5092f9ed7c623bbe9fc732ffd0968350c Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Sat, 31 Aug 2024 07:48:08 +0100 Subject: [PATCH] Remove unused monkeypatch fixtures (#12841) --- tests/test_application.py | 1 - tests/test_config/test_config.py | 2 +- tests/test_intl/test_intl.py | 4 +--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_application.py b/tests/test_application.py index f8676ddfe..c4b11b641 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -25,7 +25,6 @@ if TYPE_CHECKING: def test_instantiation( tmp_path_factory: pytest.TempPathFactory, rootdir: str | os.PathLike[str] | None, - monkeypatch: pytest.MonkeyPatch, ) -> None: # Given src_dir = tmp_path_factory.getbasetemp() / 'root' diff --git a/tests/test_config/test_config.py b/tests/test_config/test_config.py index 715998375..7f748f11e 100644 --- a/tests/test_config/test_config.py +++ b/tests/test_config/test_config.py @@ -762,7 +762,7 @@ def source_date_year(request, monkeypatch): @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) content = (app.outdir / 'index.html').read_text(encoding='utf-8') diff --git a/tests/test_intl/test_intl.py b/tests/test_intl/test_intl.py index 29e3747bf..6f343e03d 100644 --- a/tests/test_intl/test_intl.py +++ b/tests/test_intl/test_intl.py @@ -809,9 +809,7 @@ class _MockUnixClock(_MockClock): @pytest.fixture -def mock_time_and_i18n( - monkeypatch: pytest.MonkeyPatch, -) -> tuple[pytest.MonkeyPatch, _MockClock]: +def mock_time_and_i18n() -> tuple[pytest.MonkeyPatch, _MockClock]: from sphinx.util.i18n import CatalogInfo # save the 'original' definition