diff options
author | Linda Wang <wangwulin@huawei.com> | 2017-12-04 08:33:59 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2017-12-14 07:23:00 +0000 |
commit | 3f29dd2f11e3bb847fce5ac56060758d6076e8e7 (patch) | |
tree | d8fce3daf5820ed65082a2451700e2cc9742c858 /functest/tests/unit/ci/test_check_deployment.py | |
parent | 3306da5522f2576f2cd8431aac7fd4f3f4b32ca3 (diff) |
Improve the pylint score of functest-core
It also modifies the file list to ensure the rating of ci modules.
Change-Id: Ia1e414be5364cb3da3d54882db428024ed6bd99f
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/tests/unit/ci/test_check_deployment.py')
-rw-r--r-- | functest/tests/unit/ci/test_check_deployment.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/functest/tests/unit/ci/test_check_deployment.py b/functest/tests/unit/ci/test_check_deployment.py index 66d1b7af..fa2f2130 100644 --- a/functest/tests/unit/ci/test_check_deployment.py +++ b/functest/tests/unit/ci/test_check_deployment.py @@ -172,11 +172,14 @@ class CheckDeploymentTesting(unittest.TestCase): @mock.patch('functest.ci.check_deployment.LOGGER.info') @mock.patch('functest.opnfv_tests.openstack.snaps.snaps_utils.' - 'get_ext_net_name', return_value='ext-net') + 'get_ext_net_name') def test_check_extnet(self, mock_getext, mock_loginfo): + test_network = 'ext-net' + mock_getext.return_value = test_network self.deployment.check_ext_net() self.assertTrue(mock_getext.called) - mock_loginfo.assert_called_once_with("External network found: ext-net") + mock_loginfo.assert_called_once_with( + "External network found: %s", test_network) @mock.patch('functest.opnfv_tests.openstack.snaps.snaps_utils.' 'get_ext_net_name', return_value='') |