Exemple #1
0
 def test_clone(self, mock_call):
     """Verify the commands to set up a new reference repository."""
     git.clone('mock.git', 'mock/path', cache='cache')
     assert_calls(mock_call, [
         "git clone --mirror mock.git cache/mock.reference",
         "git clone --reference cache/mock.reference mock.git mock/path"
     ])
Exemple #2
0
 def test_clone_from_reference(self, mock_call):
     """Verify the commands to clone a Git repository from a reference."""
     git.clone('mock.git', 'mock/path', cache='cache')
     assert_calls(
         mock_call,
         ["git clone --reference cache/mock.reference mock.git mock/path"])
Exemple #3
0
 def test_clone_from_reference(self, mock_call):
     """Verify the commands to clone a Git repository from a reference."""
     git.clone('mock.git', 'mock/path', cache='cache')
     assert_calls(mock_call, [
         "git clone --reference cache/mock.reference mock.git mock/path"])
Exemple #4
0
 def test_clone(self, mock_call):
     """Verify the commands to set up a new reference repository."""
     git.clone('mock.git', 'mock/path', cache='cache')
     assert_calls(mock_call, [
         "git clone --mirror mock.git cache/mock.reference",
         "git clone --reference cache/mock.reference mock.git mock/path"])