aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests/unit/openstack/refstack_client/test_refstack_client.py
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2018-01-29 10:26:16 +0000
committerCédric Ollivier <cedric.ollivier@orange.com>2018-01-29 18:24:03 +0100
commit03c3f4c2bd1635383cb64168b52e4d8540056942 (patch)
tree729445b94448cc9aadc5065fe275345b463c576e /functest/tests/unit/openstack/refstack_client/test_refstack_client.py
parent8e416aee220bf6959e2e21f18a5ebfec1421858b (diff)
Fix pylint errors about refstack
JIRA: FUNCTEST-907 Change-Id: Ib08a88523c700d35894b9b89b7585425a02065c3 Signed-off-by: Linda Wang <wangwulin@huawei.com>
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.py10
1 files changed, 4 insertions, 6 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 61e950a6b..a7a914cbe 100644
--- a/functest/tests/unit/openstack/refstack_client/test_refstack_client.py
+++ b/functest/tests/unit/openstack/refstack_client/test_refstack_client.py
@@ -10,9 +10,10 @@
# pylint: disable=missing-docstring
import logging
+import unittest
+
import mock
import pkg_resources
-import unittest
from functest.core import testcase
from functest.opnfv_tests.openstack.refstack_client.refstack_client import \
@@ -51,9 +52,7 @@ class OSRefstackClientTesting(unittest.TestCase):
"errors": ['tempest.api.volume [0.230334s]'],
"skipped": ['tempest.api.network [1.265828s]']}
- @mock.patch('functest.opnfv_tests.openstack.refstack_client.tempest_conf.'
- 'TempestConf', return_value=mock.Mock())
- def _create_client(self, *args):
+ def _create_client(self):
with mock.patch('snaps.openstack.tests.openstack_tests.'
'get_credentials', return_value=self.os_creds):
return RefstackClient()
@@ -145,8 +144,7 @@ class OSRefstackClientTesting(unittest.TestCase):
parser = RefstackClientParser()
self.assertEqual(parser.parse_args(
["--config={}".format(self._config),
- "--testlist={}".format(self._testlist)
- ]), self.default_args)
+ "--testlist={}".format(self._testlist)]), self.default_args)
if __name__ == "__main__":