MCPcopy
hub / github.com/coderamp-labs/gitingest / assert_partial_clone_calls

Function assert_partial_clone_calls

tests/test_clone.py:341–344  ·  view source on GitHub ↗

Assert that the partial clone sequence of git commands was called.

(mock: AsyncMock, cfg: CloneConfig, commit: str)

Source from the content-addressed store, hash-verified

339
340
341def assert_partial_clone_calls(mock: AsyncMock, cfg: CloneConfig, commit: str) -> None:
342 """Assert that the partial clone sequence of git commands was called."""
343 assert_standard_calls(mock, cfg, commit=commit, partial_clone=True)
344 mock.assert_any_call("git", "-C", cfg.local_path, "sparse-checkout", "set", cfg.subpath)
345
346
347def assert_submodule_calls(mock: AsyncMock, cfg: CloneConfig) -> None:

Calls 1

assert_standard_callsFunction · 0.85

Tested by

no test coverage detected