From: Zack Cerza Date: Wed, 14 Dec 2016 23:56:08 +0000 (-0700) Subject: TestShamanProject: mock _get_package_sha1() X-Git-Tag: 1.1.0~481^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a3c446166350ecd4ccdc4c8729c317783629deb3;p=teuthology.git TestShamanProject: mock _get_package_sha1() Signed-off-by: Zack Cerza --- diff --git a/teuthology/test/test_packaging.py b/teuthology/test/test_packaging.py index cabecc023..dec12a12f 100644 --- a/teuthology/test/test_packaging.py +++ b/teuthology/test/test_packaging.py @@ -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',