They are not executable anymore, and tests are now meant to be run through pytest.
@@ -1,14 +1,6 @@
-#!/usr/bin/env python2
'''
Unit tests for oadm_manage_node
-# To run
-# python -m unittest version
-#
-# .
-# Ran 2 tests in 0.001s
-# OK
import os
import six
@@ -291,7 +283,3 @@ class ManageNodeTest(unittest.TestCase):
def tearDown(self):
'''TearDown method'''
pass
-
-if __name__ == "__main__":
- unittest.main()
Unit tests for oc_env
-# To run:
-# ./oc_env.py
-# Ran 1 test in 0.002s
@@ -562,7 +554,3 @@ class OCEnvTest(unittest.TestCase):
Unit tests for oc label
-# Ran 1 test in 0.597s
@@ -299,7 +291,3 @@ class OCLabelTest(unittest.TestCase):
@@ -1,15 +1,6 @@
Unit tests for oc_objectvalidator
-# ./oc_objectvalidator.py.py
-# ....
-# ----------------------------------------------------------------------
-# Ran 4 tests in 0.002s
import sys
@@ -910,7 +901,3 @@ class OCObjectValidatorTest(unittest.TestCase):
mock.call(['oc', 'get', 'netnamespace', '-o', 'json', '-n', 'default'], None),
mock.call(['oc', 'get', 'namespace', '-o', 'json', '-n', 'default'], None),
])
-if __name__ == '__main__':
Unit tests for oc process
@@ -586,7 +578,3 @@ class OCProcessTest(unittest.TestCase):
Unit tests for oc project
-# ./oc_secret.py
@@ -124,7 +116,3 @@ class OCProjectTest(unittest.TestCase):
Unit tests for oc route
-# ./oc_serviceaccount.py
@@ -381,7 +373,3 @@ metadata:
Unit tests for oc scale
@@ -270,7 +262,3 @@ class OCScaleTest(unittest.TestCase):
Unit tests for oc secret
@@ -204,7 +196,3 @@ class OCSecretTest(unittest.TestCase):
Unit tests for oc service
@@ -319,7 +311,3 @@ class OCServiceTest(unittest.TestCase):
Unit tests for oc serviceaccount
@@ -227,7 +219,3 @@ class OCServiceAccountTest(unittest.TestCase):
Unit tests for oc secret add
-# ./oc_serviceaccount_secret.py
@@ -428,7 +420,3 @@ secrets:
Unit tests for oc version
@@ -176,7 +168,3 @@ class OCVersionTest(unittest.TestCase):
Unit tests for repoquery
-# ./repoquery.py
@@ -81,7 +73,3 @@ class RepoQueryTest(unittest.TestCase):
Unit tests for yedit
-# python -m unittest yedit_test
-# .............................
-# Ran 29 tests in 0.133s
@@ -288,7 +280,3 @@ class YeditTest(unittest.TestCase):
os.unlink(YeditTest.filename)