Remove end-to-end test for git backup push

This commit is contained in:
Joakim Hellsén 2026-03-15 15:39:15 +01:00
commit 8805da33b6
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
2 changed files with 3 additions and 113 deletions

View file

@ -6,9 +6,11 @@ import sys
import tempfile
from contextlib import suppress
from pathlib import Path
from typing import TYPE_CHECKING
from typing import Any
import pytest
if TYPE_CHECKING:
import pytest
def pytest_addoption(parser: pytest.Parser) -> None:
@ -21,14 +23,6 @@ def pytest_addoption(parser: pytest.Parser) -> None:
)
def pytest_configure(config: pytest.Config) -> None:
"""Configure test markers and isolate persistent app state per xdist worker."""
config.addinivalue_line(
"markers",
"real_git_backup_push: marks tests that push git backup state to a real git repo",
)
def pytest_sessionstart(session: pytest.Session) -> None:
"""Isolate persistent app state per xdist worker to avoid cross-worker test interference."""
worker_id: str = os.environ.get("PYTEST_XDIST_WORKER", "gw0")
@ -64,10 +58,3 @@ def pytest_collection_modifyitems(config: pytest.Config, items: list[pytest.Item
"""Skip real git-repo push tests unless explicitly requested."""
if config.getoption("--run-real-git-backup-tests"):
return
skip_real_push = pytest.mark.skip(
reason="requires --run-real-git-backup-tests option to run",
)
for item in items:
if "real_git_backup_push" in item.keywords:
item.add_marker(skip_real_push)