Ejemplo n.º 1
0
Archivo: test_git.py Proyecto: nta/gdm
 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"
     ])
Ejemplo n.º 2
0
Archivo: test_git.py Proyecto: nta/gdm
 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"])
Ejemplo n.º 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"])
Ejemplo n.º 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"])