コード例 #1
0
ファイル: test_git.py プロジェクト: nta/gdm
 def test_fetch_rev_revparse(self, mock_call):
     """Verify the commands to fetch from a Git repository w/ rev-parse."""
     git.fetch('mock.git', 'master@{2015-02-12 18:30:00}')
     assert_calls(mock_call, [
         "git remote rm origin",
         "git remote add origin mock.git",
         "git fetch --tags --force --prune origin",
     ])
コード例 #2
0
ファイル: test_git.py プロジェクト: nta/gdm
 def test_fetch_rev_sha(self, mock_call):
     """Verify the commands to fetch from a Git repository w/ SHA."""
     git.fetch('mock.git', 'abcdef1234' * 4)
     assert_calls(mock_call, [
         "git remote rm origin",
         "git remote add origin mock.git",
         "git fetch --tags --force --prune origin",
     ])
コード例 #3
0
ファイル: test_git.py プロジェクト: nta/gdm
 def test_fetch_rev(self, mock_call):
     """Verify the commands to fetch from a Git repository w/ rev."""
     git.fetch('mock.git', 'mock-rev')
     assert_calls(mock_call, [
         "git remote rm origin",
         "git remote add origin mock.git",
         "git fetch --tags --force --prune origin mock-rev",
     ])
コード例 #4
0
ファイル: test_git.py プロジェクト: ntauthority/gdm
 def test_fetch_rev_revparse(self, mock_call):
     """Verify the commands to fetch from a Git repository w/ rev-parse."""
     git.fetch('mock.git', 'master@{2015-02-12 18:30:00}')
     assert_calls(mock_call, [
         "git remote rm origin",
         "git remote add origin mock.git",
         "git fetch --tags --force --prune origin",
     ])
コード例 #5
0
ファイル: test_git.py プロジェクト: ntauthority/gdm
 def test_fetch_rev_sha(self, mock_call):
     """Verify the commands to fetch from a Git repository w/ SHA."""
     git.fetch('mock.git', 'abcdef1234' * 4)
     assert_calls(mock_call, [
         "git remote rm origin",
         "git remote add origin mock.git",
         "git fetch --tags --force --prune origin",
     ])
コード例 #6
0
ファイル: test_git.py プロジェクト: ntauthority/gdm
 def test_fetch_rev(self, mock_call):
     """Verify the commands to fetch from a Git repository w/ rev."""
     git.fetch('mock.git', 'mock-rev')
     assert_calls(mock_call, [
         "git remote rm origin",
         "git remote add origin mock.git",
         "git fetch --tags --force --prune origin mock-rev",
     ])