summaryrefslogtreecommitdiff
path: root/kolla/tests/test_build.py
diff options
context:
space:
mode:
Diffstat (limited to 'kolla/tests/test_build.py')
-rw-r--r--kolla/tests/test_build.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/kolla/tests/test_build.py b/kolla/tests/test_build.py
index 0591fc1..0c50db9 100644
--- a/kolla/tests/test_build.py
+++ b/kolla/tests/test_build.py
@@ -15,6 +15,7 @@ import itertools
15import mock 15import mock
16import os 16import os
17import requests 17import requests
18import sys
18 19
19from kolla.cmd import build as build_cmd 20from kolla.cmd import build as build_cmd
20from kolla import exception 21from kolla import exception
@@ -352,14 +353,14 @@ class KollaWorkerTest(base.TestCase):
352 self.assertRaises(ValueError, 353 self.assertRaises(ValueError,
353 kolla.filter_images) 354 kolla.filter_images)
354 355
355 @mock.patch('pprint.pprint') 356 @mock.patch('json.dump')
356 def test_list_dependencies(self, pprint_mock): 357 def test_list_dependencies(self, dump_mock):
357 self.conf.set_override('profile', ['all']) 358 self.conf.set_override('profile', ['all'])
358 kolla = build.KollaWorker(self.conf) 359 kolla = build.KollaWorker(self.conf)
359 kolla.images = self.images 360 kolla.images = self.images
360 kolla.filter_images() 361 kolla.filter_images()
361 kolla.list_dependencies() 362 kolla.list_dependencies()
362 pprint_mock.assert_called_once_with(mock.ANY) 363 dump_mock.assert_called_once_with(mock.ANY, sys.stdout, indent=2)
363 364
364 def test_summary(self): 365 def test_summary(self):
365 kolla = build.KollaWorker(self.conf) 366 kolla = build.KollaWorker(self.conf)