summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils
diff options
context:
space:
mode:
authorJason DeTiberus <detiber@gmail.com>2017-03-06 13:55:28 -0500
committerGitHub <noreply@github.com>2017-03-06 13:55:28 -0500
commita56fd2d8383b60e95aba7336006ac0ff718c179c (patch)
treefd2f7dca3fa46bdd83d42e7172c79a5ecfccbbe9 /roles/lib_utils
parent839f19377361bbf562f59e833baf2c0799921402 (diff)
parent700d907c0771405c3deb464d4972a1510025941d (diff)
downloadopenshift-a56fd2d8383b60e95aba7336006ac0ff718c179c.tar.gz
openshift-a56fd2d8383b60e95aba7336006ac0ff718c179c.tar.bz2
openshift-a56fd2d8383b60e95aba7336006ac0ff718c179c.tar.xz
openshift-a56fd2d8383b60e95aba7336006ac0ff718c179c.zip
Merge pull request #3570 from rhcarvalho/more-misc-cleanup
Remove lots of dead code in tests
Diffstat (limited to 'roles/lib_utils')
-rwxr-xr-xroles/lib_utils/src/test/unit/test_repoquery.py20
-rwxr-xr-xroles/lib_utils/src/test/unit/test_yedit.py12
2 files changed, 0 insertions, 32 deletions
diff --git a/roles/lib_utils/src/test/unit/test_repoquery.py b/roles/lib_utils/src/test/unit/test_repoquery.py
index c487ab254..e39d9d83f 100755
--- a/roles/lib_utils/src/test/unit/test_repoquery.py
+++ b/roles/lib_utils/src/test/unit/test_repoquery.py
@@ -1,14 +1,6 @@
-#!/usr/bin/env python2
'''
Unit tests for repoquery
'''
-# To run:
-# ./repoquery.py
-#
-# .
-# Ran 1 test in 0.002s
-#
-# OK
import os
import sys
@@ -31,10 +23,6 @@ class RepoQueryTest(unittest.TestCase):
Test class for RepoQuery
'''
- def setUp(self):
- ''' setup method for other tests '''
- pass
-
@mock.patch('repoquery._run')
def test_querying_a_package(self, mock_cmd):
''' Testing querying a package '''
@@ -77,11 +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']),
])
-
- def tearDown(self):
- '''TearDown method'''
- pass
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/roles/lib_utils/src/test/unit/test_yedit.py b/roles/lib_utils/src/test/unit/test_yedit.py
index a22cdee56..23a3f7353 100755
--- a/roles/lib_utils/src/test/unit/test_yedit.py
+++ b/roles/lib_utils/src/test/unit/test_yedit.py
@@ -1,14 +1,6 @@
-#!/usr/bin/env python2
'''
Unit tests for yedit
'''
-# To run
-# python -m unittest yedit_test
-#
-# .............................
-# ----------------------------------------------------------------------
-# Ran 29 tests in 0.133s
-# OK
import os
import sys
@@ -288,7 +280,3 @@ class YeditTest(unittest.TestCase):
def tearDown(self):
'''TearDown method'''
os.unlink(YeditTest.filename)
-
-
-if __name__ == "__main__":
- unittest.main()