summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-02-19 22:05:59 +0100
committerGitHub <noreply@github.com>2017-02-19 22:05:59 +0100
commit3ba41f17f7ea7d05a291a59f4d22b31ba159579b (patch)
treebc73cffbf701af3f8a2695bc26fc634f7f669018 /roles/lib_utils
parent4653f96dd2612c9d4d580637a7f99d41fad8b46e (diff)
parentfd7c9750cc344ae48abfc48c13f1b1d84ef077b8 (diff)
downloadopenshift-3ba41f17f7ea7d05a291a59f4d22b31ba159579b.tar.gz
openshift-3ba41f17f7ea7d05a291a59f4d22b31ba159579b.tar.bz2
openshift-3ba41f17f7ea7d05a291a59f4d22b31ba159579b.tar.xz
openshift-3ba41f17f7ea7d05a291a59f4d22b31ba159579b.zip
Merge pull request #3414 from rhcarvalho/fix-missing-unit-tests-ci
Fix missing unit tests in CI
Diffstat (limited to 'roles/lib_utils')
-rw-r--r--roles/lib_utils/library/repoquery.py2
-rw-r--r--[-rwxr-xr-x]roles/lib_utils/src/test/unit/test_repoquery.py (renamed from roles/lib_utils/src/test/unit/repoquery.py)0
-rw-r--r--[-rwxr-xr-x]roles/lib_utils/src/test/unit/test_yedit.py (renamed from roles/lib_utils/src/test/unit/yedit_test.py)2
3 files changed, 2 insertions, 2 deletions
diff --git a/roles/lib_utils/library/repoquery.py b/roles/lib_utils/library/repoquery.py
index cc7aa04fd..f31c8911b 100644
--- a/roles/lib_utils/library/repoquery.py
+++ b/roles/lib_utils/library/repoquery.py
@@ -477,7 +477,7 @@ class Repoquery(RepoqueryCLI):
''' Gather and present the versions of each package '''
versions_dict = {}
- versions_dict['available_versions_full'] = formatted_versions.keys()
+ versions_dict['available_versions_full'] = list(formatted_versions.keys())
# set the match version, if called
if self.match_version:
diff --git a/roles/lib_utils/src/test/unit/repoquery.py b/roles/lib_utils/src/test/unit/test_repoquery.py
index c487ab254..c487ab254 100755..100644
--- a/roles/lib_utils/src/test/unit/repoquery.py
+++ b/roles/lib_utils/src/test/unit/test_repoquery.py
diff --git a/roles/lib_utils/src/test/unit/yedit_test.py b/roles/lib_utils/src/test/unit/test_yedit.py
index 2793c5c1a..ed07ac96e 100755..100644
--- a/roles/lib_utils/src/test/unit/yedit_test.py
+++ b/roles/lib_utils/src/test/unit/test_yedit.py
@@ -256,7 +256,7 @@ class YeditTest(unittest.TestCase):
def test_pop_list_item_2(self):
'''test dict value with none value'''
- z = range(10)
+ z = list(range(10))
yed = Yedit(content=z, separator=':')
yed.pop('', 5)
z.pop(5)