]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
test_email_addr() mock util.fetch_repos()
authorZack Cerza <zack@redhat.com>
Wed, 14 Dec 2016 23:45:05 +0000 (16:45 -0700)
committerZack Cerza <zack@redhat.com>
Thu, 15 Dec 2016 00:22:22 +0000 (17:22 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/suite/test/test_run_.py

index b3b3db798ec5d538017a56c33ad329dc38735737..86cc4d5d5f92719545f3850bbc116fb92fbf4936 100644 (file)
@@ -33,11 +33,12 @@ class TestRun(object):
         )
         self.args = YamlConfig.from_dict(self.args_dict)
 
+    @patch('teuthology.suite.run.util.fetch_repos')
     @patch('teuthology.suite.run.util.git_ls_remote')
     @patch('teuthology.suite.run.Run.choose_ceph_version')
     @patch('teuthology.suite.run.util.git_validate_sha1')
     def test_email_addr(self, m_git_validate_sha1, m_choose_ceph_version,
-                        m_git_ls_remote):
+                        m_git_ls_remote, m_fetch_repos):
         # neuter choose_X_branch
         m_git_validate_sha1.return_value = self.args_dict['ceph_sha1']
         m_choose_ceph_version.return_value = self.args_dict['ceph_sha1']