diff options
| author | Jenkins <jenkins@review.openstack.org> | 2017-07-07 02:58:48 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2017-07-07 02:58:48 +0000 |
| commit | ccc1911ad88bc92da281cbac04b4c58c406c3ba2 (patch) | |
| tree | 2b1034837a1e7abaa04df0af8c5a83761febe96b /kolla/tests/test_build.py | |
| parent | da4396a86d7c7542fa6d281cdf69d26dd5e564bd (diff) | |
| parent | 78bbd8fd0d54c8203ced7d81c32bdd421849ceee (diff) | |
| download | kolla-ccc1911ad88bc92da281cbac04b4c58c406c3ba2.tar.gz kolla-ccc1911ad88bc92da281cbac04b4c58c406c3ba2.zip | |
Merge "Add new --skip-existing option to kolla-build"
Diffstat (limited to 'kolla/tests/test_build.py')
| -rw-r--r-- | kolla/tests/test_build.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kolla/tests/test_build.py b/kolla/tests/test_build.py index c1d17cfdb..8ace0622c 100644 --- a/kolla/tests/test_build.py +++ b/kolla/tests/test_build.py @@ -227,6 +227,9 @@ class KollaWorkerTest(base.TestCase): self.images = [image, image_child, image_unmatched, image_error, image_built] + patcher = mock.patch('docker.APIClient') + self.addCleanup(patcher.stop) + self.mock_client = patcher.start() def test_supported_base_type(self): rh_base = ['centos', 'oraclelinux', 'rhel'] @@ -409,7 +412,8 @@ class MainTest(base.TestCase): self.assertEqual(1, result) @mock.patch('sys.argv') - def test_run_build(self, mock_sys): + @mock.patch('docker.APIClient') + def test_run_build(self, mock_client, mock_sys): result = build.run_build() self.assertTrue(result) |
