Assert that the partial clone sequence of git commands was called.
(mock: AsyncMock, cfg: CloneConfig, commit: str)
| 339 | |
| 340 | |
| 341 | def 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 | |
| 347 | def assert_submodule_calls(mock: AsyncMock, cfg: CloneConfig) -> None: |
no test coverage detected