diff options
author | 2017-08-24 13:19:11 +0000 | |
---|---|---|
committer | 2017-08-24 13:19:11 +0000 | |
commit | 671b3356e8fc7c6219919f978a3dee6b69e8c663 (patch) | |
tree | 3e311884dde7947a743b79bb29f50d308432296e /functest/tests/unit/openstack/refstack_client/test_refstack_client.py | |
parent | c67c6687976a486af880ece2e6831d7ef7fbbdcc (diff) | |
parent | 07e73e65dea6526ea835cbfe3f864a7e102f658c (diff) |
Merge "Fix the tempest error when creating snapshot"
Diffstat (limited to 'functest/tests/unit/openstack/refstack_client/test_refstack_client.py')
-rw-r--r-- | functest/tests/unit/openstack/refstack_client/test_refstack_client.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/functest/tests/unit/openstack/refstack_client/test_refstack_client.py b/functest/tests/unit/openstack/refstack_client/test_refstack_client.py index 5a201318..ca097483 100644 --- a/functest/tests/unit/openstack/refstack_client/test_refstack_client.py +++ b/functest/tests/unit/openstack/refstack_client/test_refstack_client.py @@ -36,7 +36,9 @@ class OSRefstackClientTesting(unittest.TestCase): username='user', password='pass', auth_url='http://foo.com:5000/v3', project_name='bar') - def _create_client(self): + @mock.patch('functest.opnfv_tests.openstack.refstack_client.tempest_conf.' + 'TempestConf', return_value=mock.Mock()) + def _create_client(self, mock_conf): with mock.patch('snaps.openstack.tests.openstack_tests.' 'get_credentials', return_value=self.os_creds): return RefstackClient() |