@@ -24,10 +24,6 @@ class ManageNodeTest(unittest.TestCase):
Test class for oadm_manage_node
'''
- def setUp(self):
- ''' setup method will create a file and set to known configuration '''
- pass
-
@mock.patch('oadm_manage_node.Utils.create_tmpfile_copy')
@mock.patch('oadm_manage_node.ManageNode.openshift_cmd')
def test_list_pods(self, mock_openshift_cmd, mock_tmpfile_copy):
@@ -279,7 +275,3 @@ class ManageNodeTest(unittest.TestCase):
mock_shutil_which.side_effect = lambda _f, path=None: oc_bin
self.assertEqual(locate_oc_binary(), oc_bin)
- def tearDown(self):
- '''TearDown method'''
@@ -24,10 +24,6 @@ class OCEnvTest(unittest.TestCase):
Test class for OCEnv
@mock.patch('oc_env.locate_oc_binary')
@mock.patch('oc_env.Utils.create_tmpfile_copy')
@mock.patch('oc_env.OCEnv._run')
@@ -550,7 +546,3 @@ class OCEnvTest(unittest.TestCase):
@@ -24,10 +24,6 @@ class OCLabelTest(unittest.TestCase):
Test class for OCLabel
@mock.patch('oc_label.Utils.create_tmpfile_copy')
@mock.patch('oc_label.OCLabel._run')
def test_state_list(self, mock_cmd, mock_tmpfile_copy):
@@ -287,7 +283,3 @@ class OCLabelTest(unittest.TestCase):
@@ -246,10 +246,6 @@ class OCProcessTest(unittest.TestCase):
}
}'''
- ''' setup method will set to known configuration '''
@mock.patch('oc_process.Utils.create_tmpfile_copy')
@mock.patch('oc_process.OCProcess._run')
@@ -574,7 +570,3 @@ class OCProcessTest(unittest.TestCase):
@@ -23,10 +23,6 @@ class OCProjectTest(unittest.TestCase):
Test class for OCSecret
@mock.patch('oc_project.locate_oc_binary')
@mock.patch('oc_project.Utils.create_tmpfile_copy')
@mock.patch('oc_project.Utils._write')
@@ -112,7 +108,3 @@ class OCProjectTest(unittest.TestCase):
mock.call(['oc', 'get', 'namespace', 'operations', '-o', 'json'], None),
])
@@ -24,10 +24,6 @@ class OCRouteTest(unittest.TestCase):
Test class for OCServiceAccount
@mock.patch('oc_route.locate_oc_binary')
@mock.patch('oc_route.Utils.create_tmpfile_copy')
@mock.patch('oc_route.OCRoute._run')
@@ -369,7 +365,3 @@ metadata:
@@ -24,10 +24,6 @@ class OCScaleTest(unittest.TestCase):
Test class for OCVersion
@mock.patch('oc_scale.Utils.create_tmpfile_copy')
@mock.patch('oc_scale.OCScale.openshift_cmd')
def test_state_list(self, mock_openshift_cmd, mock_tmpfile_copy):
@@ -258,7 +254,3 @@ class OCScaleTest(unittest.TestCase):
@@ -24,10 +24,6 @@ class OCSecretTest(unittest.TestCase):
@mock.patch('oc_secret.locate_oc_binary')
@mock.patch('oc_secret.Utils.create_tmpfile_copy')
@mock.patch('oc_secret.Utils._write')
@@ -192,7 +188,3 @@ class OCSecretTest(unittest.TestCase):
@@ -25,10 +25,6 @@ class OCServiceTest(unittest.TestCase):
Test class for OCService
@mock.patch('oc_service.Utils.create_tmpfile_copy')
@mock.patch('oc_service.OCService._run')
@@ -307,7 +303,3 @@ class OCServiceTest(unittest.TestCase):
@@ -24,10 +24,6 @@ class OCServiceAccountTest(unittest.TestCase):
@mock.patch('oc_serviceaccount.locate_oc_binary')
@mock.patch('oc_serviceaccount.Utils.create_tmpfile_copy')
@mock.patch('oc_serviceaccount.OCServiceAccount._run')
@@ -215,7 +211,3 @@ class OCServiceAccountTest(unittest.TestCase):
@@ -30,10 +30,6 @@ class OCServiceAccountSecretTest(unittest.TestCase):
Test class for OCServiceAccountSecret
@mock.patch('oc_serviceaccount_secret.locate_oc_binary')
@mock.patch('oc_serviceaccount_secret.Utils.create_tmpfile_copy')
@mock.patch('oc_serviceaccount_secret.Yedit._write')
@@ -416,7 +412,3 @@ secrets:
@@ -24,10 +24,6 @@ class OCVersionTest(unittest.TestCase):
@mock.patch('oc_version.Utils.create_tmpfile_copy')
@mock.patch('oc_version.OCVersion.openshift_cmd')
def test_get(self, mock_openshift_cmd, mock_tmpfile_copy):
@@ -164,7 +160,3 @@ class OCVersionTest(unittest.TestCase):
@@ -23,10 +23,6 @@ class RepoQueryTest(unittest.TestCase):
Test class for RepoQuery
- ''' setup method for other tests '''
@mock.patch('repoquery._run')
def test_querying_a_package(self, mock_cmd):
''' Testing querying a package '''
@@ -69,7 +65,3 @@ class RepoQueryTest(unittest.TestCase):
mock_cmd.assert_has_calls([
mock.call(['/usr/bin/repoquery', '--plugins', '--quiet', '--pkgnarrow=repos', '--queryformat=%{version}|%{release}|%{arch}|%{repo}|%{version}-%{release}', 'bash']),