From dace1a426b0a9b2dec4d8290370f3ba0dd882e12 Mon Sep 17 00:00:00 2001
From: Rodolfo Carvalho <rhcarvalho@gmail.com>
Date: Tue, 28 Feb 2017 14:32:04 +0100
Subject: Clean up test files

They are not executable anymore, and tests are now meant to be run
through pytest.
---
 roles/lib_utils/src/test/unit/test_repoquery.py | 12 ------------
 roles/lib_utils/src/test/unit/test_yedit.py     | 12 ------------
 2 files changed, 24 deletions(-)

(limited to 'roles/lib_utils/src')

diff --git a/roles/lib_utils/src/test/unit/test_repoquery.py b/roles/lib_utils/src/test/unit/test_repoquery.py
index c487ab254..790dabfc7 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
@@ -81,7 +73,3 @@ class RepoQueryTest(unittest.TestCase):
     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()
-- 
cgit v1.2.3


From 700d907c0771405c3deb464d4972a1510025941d Mon Sep 17 00:00:00 2001
From: Rodolfo Carvalho <rhcarvalho@gmail.com>
Date: Tue, 28 Feb 2017 15:16:51 +0100
Subject: Remove dummy setup/teardown methods

---
 roles/lib_utils/src/test/unit/test_repoquery.py | 8 --------
 1 file changed, 8 deletions(-)

(limited to 'roles/lib_utils/src')

diff --git a/roles/lib_utils/src/test/unit/test_repoquery.py b/roles/lib_utils/src/test/unit/test_repoquery.py
index 790dabfc7..e39d9d83f 100755
--- a/roles/lib_utils/src/test/unit/test_repoquery.py
+++ b/roles/lib_utils/src/test/unit/test_repoquery.py
@@ -23,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 '''
@@ -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']),
         ])
-
-    def tearDown(self):
-        '''TearDown method'''
-        pass
-- 
cgit v1.2.3