mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Remove unused monkeypatch fixtures (#12841)
This commit is contained in:
parent
7b6f76b61c
commit
c00388f509
@ -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'
|
||||||
|
@ -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')
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user