aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests/unit
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2019-10-01 08:40:09 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-10-01 08:40:09 +0000
commit3f004ea3750a4f536a253433328da06f83a6f4e6 (patch)
treef10b5b48ef13e8e383bf8693e0b6e3b807c07fb4 /functest/tests/unit
parent85a1f8cddb1dab4b4674686ce58cf1e2ae568dcb (diff)
parent22b37f0482f84fc935ae9ece3c9722098c0573bc (diff)
Merge "Count all active hypervisors"
Diffstat (limited to 'functest/tests/unit')
-rw-r--r--functest/tests/unit/openstack/rally/test_rally.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/tests/unit/openstack/rally/test_rally.py b/functest/tests/unit/openstack/rally/test_rally.py
index c5cd5019e..c430e9794 100644
--- a/functest/tests/unit/openstack/rally/test_rally.py
+++ b/functest/tests/unit/openstack/rally/test_rally.py
@@ -291,8 +291,8 @@ class OSRallyTesting(unittest.TestCase):
def test_prepare_run_flavor_alt_creation_failed(self, *args):
# pylint: disable=unused-argument
self.rally_base.stests = ['test1', 'test2']
- with mock.patch.object(self.rally_base.cloud,
- 'list_hypervisors') as mock_list_hyperv, \
+ with mock.patch.object(self.rally_base, 'count_active_hypervisors') \
+ as mock_list_hyperv, \
mock.patch.object(self.rally_base, 'create_flavor_alt',
side_effect=Exception) \
as mock_create_flavor: