Format `tests/` (#12760)

This commit is contained in:
Adam Turner
2024-08-11 14:58:56 +01:00
committed by GitHub
parent 620e434f65
commit d03156e078
128 changed files with 18922 additions and 10436 deletions

View File

@@ -19,7 +19,8 @@ if TYPE_CHECKING:
def _init_console(
locale_dir: str | None = sphinx.locale._LOCALE_DIR, catalog: str = 'sphinx',
locale_dir: str | None = sphinx.locale._LOCALE_DIR,
catalog: str = 'sphinx',
) -> tuple[gettext.NullTranslations, bool]:
"""Monkeypatch ``init_console`` to skip its action.
@@ -46,9 +47,9 @@ def rootdir() -> Path:
def pytest_report_header(config: pytest.Config) -> str:
header = f"libraries: Sphinx-{sphinx.__display_version__}, docutils-{docutils.__version__}"
header = f'libraries: Sphinx-{sphinx.__display_version__}, docutils-{docutils.__version__}'
if hasattr(config, '_tmp_path_factory'):
header += f"\nbase tmp_path: {config._tmp_path_factory.getbasetemp()}"
header += f'\nbase tmp_path: {config._tmp_path_factory.getbasetemp()}'
return header