MCPcopy Index your code
hub / github.com/saltstack/salt / test_checkout

Function test_checkout

tests/pytests/unit/utils/test_gitcli.py:182–185  ·  view source on GitHub ↗
(gitcli)

Source from the content-addressed store, hash-verified

180
181
182def test_checkout(gitcli):
183 with patch.object(gitcli, "_run_git") as mock_run:
184 mock_run.return_value = MagicMock(returncode=0)
185 assert gitcli.checkout() == gitcli.check_root()
186
187
188def test_git_version_check_ok(minion_opts, tmp_path):

Callers

nothing calls this directly

Calls 2

check_rootMethod · 0.80
checkoutMethod · 0.45

Tested by

no test coverage detected