summaryrefslogtreecommitdiff
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.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_git_superproject.py b/tests/test_git_superproject.py
index c28eb8ded..6d7140aa8 100644
--- a/tests/test_git_superproject.py
+++ b/tests/test_git_superproject.py
@@ -465,7 +465,7 @@ class SuperprojectTestCase(unittest.TestCase):
"""Test _Init succeeds and creates the work git dir."""
self.assertFalse(os.path.exists(self._superproject._work_git))
with mock.patch(
- "git_superproject.GitCommand", autospec=True
+ "git_command.GitCommand", autospec=True
) as mock_git_command:
instance = mock_git_command.return_value
instance.Wait.return_value = 0
@@ -492,7 +492,7 @@ class SuperprojectTestCase(unittest.TestCase):
os.mkdir(self._superproject._superproject_path)
os.mkdir(self._superproject._work_git)
with mock.patch(
- "git_superproject.GitCommand", autospec=True
+ "git_command.GitCommand", autospec=True
) as mock_git_command:
self.assertTrue(self._superproject._Init())
mock_git_command.assert_not_called()
@@ -500,7 +500,7 @@ class SuperprojectTestCase(unittest.TestCase):
def test_Init_failure_cleans_up(self):
"""Test _Init cleans up the temporary directory if 'git init' fails."""
with mock.patch(
- "git_superproject.GitCommand", autospec=True
+ "git_command.GitCommand", autospec=True
) as mock_git_command:
instance = mock_git_command.return_value
instance.Wait.return_value = 1
@@ -540,7 +540,7 @@ class SuperprojectTestCase(unittest.TestCase):
os.mkdir(self._superproject._work_git)
with mock.patch.object(self._superproject, "_Init", return_value=True):
with mock.patch(
- "git_superproject.GitCommand", autospec=True
+ "git_command.GitCommand", autospec=True
) as mock_git_command:
with mock.patch.object(
self._superproject, "_GetRef"
@@ -600,7 +600,7 @@ class SuperprojectTestCase(unittest.TestCase):
command = mock.MagicMock(stdout="1234\n")
command.Wait.return_value = 0
with mock.patch(
- "git_superproject.GitCommand", return_value=command
+ "git_command.GitCommand", return_value=command
) as git_command:
self.assertEqual("1234", self._superproject._GetRef("HEAD"))