diff options
Diffstat (limited to 'tests/test_git_superproject.py')
-rw-r--r-- | tests/test_git_superproject.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_git_superproject.py b/tests/test_git_superproject.py index d2c2f501..fc9101dd 100644 --- a/tests/test_git_superproject.py +++ b/tests/test_git_superproject.py | |||
@@ -78,11 +78,11 @@ class SuperprojectTestCase(unittest.TestCase): | |||
78 | with mock.patch.object(self._superproject, '_Clone', return_value=False): | 78 | with mock.patch.object(self._superproject, '_Clone', return_value=False): |
79 | self._superproject._GetAllProjectsSHAs(url='localhost') | 79 | self._superproject._GetAllProjectsSHAs(url='localhost') |
80 | 80 | ||
81 | def test_superproject_get_project_shas_mock_pull(self): | 81 | def test_superproject_get_project_shas_mock_fetch(self): |
82 | """Test with _Pull failing.""" | 82 | """Test with _Fetch failing.""" |
83 | with self.assertRaises(GitError): | 83 | with self.assertRaises(GitError): |
84 | with mock.patch.object(self._superproject, '_Clone', return_value=True): | 84 | with mock.patch.object(self._superproject, '_Clone', return_value=True): |
85 | with mock.patch.object(self._superproject, '_Pull', return_value=False): | 85 | with mock.patch.object(self._superproject, '_Fetch', return_value=False): |
86 | self._superproject._GetAllProjectsSHAs(url='localhost') | 86 | self._superproject._GetAllProjectsSHAs(url='localhost') |
87 | 87 | ||
88 | def test_superproject_get_project_shas_mock_ls_tree(self): | 88 | def test_superproject_get_project_shas_mock_ls_tree(self): |
@@ -141,7 +141,7 @@ class SuperprojectTestCase(unittest.TestCase): | |||
141 | data = ('160000 commit 2c2724cb36cd5a9cec6c852c681efc3b7c6b86ea\tart\x00' | 141 | data = ('160000 commit 2c2724cb36cd5a9cec6c852c681efc3b7c6b86ea\tart\x00' |
142 | '160000 commit e9d25da64d8d365dbba7c8ee00fe8c4473fe9a06\tbootable/recovery\x00') | 142 | '160000 commit e9d25da64d8d365dbba7c8ee00fe8c4473fe9a06\tbootable/recovery\x00') |
143 | with mock.patch.object(self._superproject, '_Clone', return_value=True): | 143 | with mock.patch.object(self._superproject, '_Clone', return_value=True): |
144 | with mock.patch.object(self._superproject, '_Pull', return_value=True): | 144 | with mock.patch.object(self._superproject, '_Fetch', return_value=True): |
145 | with mock.patch.object(self._superproject, '_LsTree', return_value=data): | 145 | with mock.patch.object(self._superproject, '_LsTree', return_value=data): |
146 | # Create temporary directory so that it can write the file. | 146 | # Create temporary directory so that it can write the file. |
147 | os.mkdir(self._superproject._superproject_path) | 147 | os.mkdir(self._superproject._superproject_path) |