diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-07-27 17:13:20 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-07-27 17:14:27 +0200 |
commit | f6f6562705a1e857c055d2ccb875eed4b619ba68 (patch) | |
tree | 8e83a6bd166d8ca8063bbc666ba25cb1bceac393 /functest_kubernetes | |
parent | 7fdacccac18780f59cda7e825b8ed5a177db9acf (diff) |
Enable py36 in gates
It also updates pylint.
Change-Id: Ifcc597bc4a6aabdb56588949af3b7cf4d52221af
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 4f7536dfb0f4d639d76de54e360e6ba47f51888a)
Diffstat (limited to 'functest_kubernetes')
-rw-r--r-- | functest_kubernetes/test_k8stest.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/functest_kubernetes/test_k8stest.py b/functest_kubernetes/test_k8stest.py index 81d92853..16b0f246 100644 --- a/functest_kubernetes/test_k8stest.py +++ b/functest_kubernetes/test_k8stest.py @@ -38,8 +38,8 @@ class K8sTests(unittest.TestCase): self.k8stesting.config = 'not_file' with mock.patch.object(self.k8stesting, '_K8sTesting__logger') as mock_logger: - self.assertEquals(self.k8stesting.run(), - testcase.TestCase.EX_RUN_ERROR) + self.assertEqual(self.k8stesting.run(), + testcase.TestCase.EX_RUN_ERROR) mock_logger.error.assert_called_with( "Cannot run k8s testcases. Config file not found") mock_func.assert_called_with('not_file') @@ -54,8 +54,8 @@ class K8sTests(unittest.TestCase): @mock.patch('functest_kubernetes.k8stest.os.path.isfile') @mock.patch('functest_kubernetes.k8stest.subprocess.Popen') def test_run(self, *args): - self.assertEquals(self.k8stesting.run(), - testcase.TestCase.EX_OK) + self.assertEqual(self.k8stesting.run(), + testcase.TestCase.EX_OK) for loop in range(3): args[loop].assert_called() |