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

Method test_clone

tests/integration/modules/test_git.py:292–299  ·  view source on GitHub ↗

Test cloning an existing repo

(self)

Source from the content-addressed store, hash-verified

290
291 @pytest.mark.slow_test
292 def test_clone(self):
293 """
294 Test cloning an existing repo
295 """
296 clone_parent_dir = tempfile.mkdtemp(dir=RUNTIME_VARS.TMP)
297 self.assertTrue(self.run_function("git.clone", [clone_parent_dir, self.repo]))
298 # Cleanup after yourself
299 shutil.rmtree(clone_parent_dir, True)
300
301 @pytest.mark.slow_test
302 def test_clone_with_alternate_name(self):

Callers

nothing calls this directly

Calls 1

run_functionMethod · 0.95

Tested by

no test coverage detected