fix(ci): run dependency PR file/git ops inside a clone of the target repo
CI / validate (pull_request) Failing after 1m10s
CI / auto-merge (pull_request) Skipped

This commit is contained in:
Emil Simeonov
2026-09-19 04:22:11 +02:00
parent 0fc1d82365
commit 2bdb7542fc
3 changed files with 49 additions and 18 deletions
+7
View File
@@ -16,6 +16,13 @@ from devx.ci.create_dependency_pr import (
)
@pytest.fixture(autouse=True)
def _mock_subprocess() -> MagicMock:
"""Mock subprocess so CLI tests never run a real git clone."""
with patch("devx.ci.create_dependency_pr.subprocess.run") as m:
yield m
class TestFindPinnedVersion:
def test_finds_pip_git_pin(self, tmp_path: Path) -> None:
content = "grm @ git+https://git.example.com/repo.git@v0.5.1"