]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
TestShamanProject: mock _get_package_sha1() 999/head
authorZack Cerza <zack@redhat.com>
Wed, 14 Dec 2016 23:56:08 +0000 (16:56 -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/test/test_packaging.py

index cabecc0239abbbf18a0dd275e504e39feb99cbab..dec12a12f2bb6503a9a74b8977ab9292051d5792 100644 (file)
@@ -684,6 +684,11 @@ class TestShamanProject(TestBuilderProject):
                 "&flavor=default&distros=ubuntu%2F14.04%2Fx86_64&sha1=sha1"
             )
 
+    @patch('teuthology.packaging.ShamanProject._get_package_sha1')
+    def test_init_from_config_tag_ref(self, m_get_package_sha1):
+        m_get_package_sha1.return_value = 'the_sha1'
+        super(TestShamanProject, self).test_init_from_config_tag_ref()
+
     def test_init_from_config_tag_overrides_branch_ref(self, caplog):
         with patch(
             'teuthology.packaging.repo_utils.ls_remote',