コード例 #1
0
ファイル: test_git.py プロジェクト: 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"
     ])
コード例 #2
0
ファイル: test_git.py プロジェクト: 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"])
コード例 #3
0
ファイル: test_git.py プロジェクト: ntauthority/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"])
コード例 #4
0
ファイル: test_git.py プロジェクト: ntauthority/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"])