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

Function assert_submodule_calls

tests/test_clone.py:347–349  ·  view source on GitHub ↗

Assert that submodule update commands were called.

(mock: AsyncMock, cfg: CloneConfig)

Source from the content-addressed store, hash-verified

345
346
347def assert_submodule_calls(mock: AsyncMock, cfg: CloneConfig) -> None:
348 """Assert that submodule update commands were called."""
349 mock.assert_any_call("git", "-C", cfg.local_path, "submodule", "update", "--init", "--recursive", "--depth=1")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected