Skip to content

Commit 2baa72b

Browse files
rootclaude
authored andcommitted
fix: update test assertions to match GitPython implementation
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 81fdf80 commit 2baa72b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_clone.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ async def test_clone_without_commit(repo_exists_true: AsyncMock, gitpython_mocks
136136
mock_repo = gitpython_mocks["repo"]
137137
mock_clone_from = gitpython_mocks["clone_from"]
138138

139-
# Should have resolved the commit via execute
140-
mock_git_cmd.execute.assert_called()
139+
# Should have resolved the commit via ls_remote
140+
mock_git_cmd.ls_remote.assert_called()
141141
# Should have cloned the repo
142142
mock_clone_from.assert_called_once()
143143
# Should have fetched and checked out
@@ -179,13 +179,13 @@ async def test_clone_with_specific_subpath(gitpython_mocks: dict) -> None:
179179

180180
await clone_repo(clone_config)
181181

182-
# Verify partial clone (using git.execute instead of Repo.clone_from)
182+
# Verify partial clone (using git.clone instead of Repo.clone_from)
183183
mock_git_cmd = gitpython_mocks["git_cmd"]
184-
mock_git_cmd.execute.assert_called()
184+
mock_git_cmd.clone.assert_called()
185185

186186
# Verify sparse checkout was configured
187187
mock_repo = gitpython_mocks["repo"]
188-
mock_repo.git.execute.assert_called()
188+
mock_repo.git.sparse_checkout.assert_called()
189189

190190

191191
@pytest.mark.asyncio

0 commit comments

Comments
 (0)