summaryrefslogtreecommitdiffstats
path: root/tests/test_git_superproject.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_git_superproject.py')
-rw-r--r--tests/test_git_superproject.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_git_superproject.py b/tests/test_git_superproject.py
index 67a75a17..4012ec26 100644
--- a/tests/test_git_superproject.py
+++ b/tests/test_git_superproject.py
@@ -61,6 +61,13 @@ class SuperprojectTestCase(unittest.TestCase):
61 with mock.patch.object(self._superproject, '_Clone', return_value=False): 61 with mock.patch.object(self._superproject, '_Clone', return_value=False):
62 self._superproject.GetAllProjectsSHAs(url='localhost') 62 self._superproject.GetAllProjectsSHAs(url='localhost')
63 63
64 def test_superproject_get_project_shas_mock_pull(self):
65 """Test with _Pull failing."""
66 with self.assertRaises(GitError):
67 with mock.patch.object(self._superproject, '_Clone', return_value=True):
68 with mock.patch.object(self._superproject, '_Pull', return_value=False):
69 self._superproject.GetAllProjectsSHAs(url='localhost')
70
64 def test_superproject_get_project_shas_mock_ls_tree(self): 71 def test_superproject_get_project_shas_mock_ls_tree(self):
65 """Test with LsTree being a mock.""" 72 """Test with LsTree being a mock."""
66 data = ('120000 blob 158258bdf146f159218e2b90f8b699c4d85b5804\tAndroid.bp\x00' 73 data = ('120000 blob 158258bdf146f159218e2b90f8b699c4d85b5804\tAndroid.bp\x00'