1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-20 02:33:50 +01:00

[git] Automatically recover from broken git repositories in external_components (#11246)

This commit is contained in:
J. Nick Koston
2025-10-15 16:58:58 -10:00
committed by GitHub
parent 708f8a95e5
commit 42f1b61e31
3 changed files with 594 additions and 62 deletions

View File

@@ -96,6 +96,13 @@ def mock_run_git_command() -> Generator[Mock, None, None]:
yield mock
@pytest.fixture
def mock_subprocess_run() -> Generator[Mock, None, None]:
"""Mock subprocess.run for testing."""
with patch("subprocess.run") as mock:
yield mock
@pytest.fixture
def mock_get_idedata() -> Generator[Mock, None, None]:
"""Mock get_idedata for platformio_api."""