summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift
diff options
context:
space:
mode:
authorPierre-Louis Bonicoli <pierre-louis.bonicoli@libregerbil.fr>2017-04-18 23:03:13 +0200
committerPierre-Louis Bonicoli <pierre-louis.bonicoli@libregerbil.fr>2017-04-18 23:13:46 +0200
commit93a979aa93f3edffd36375cd85b2ae134132b5ca (patch)
treed744c1c994522d168468304757ff25497bb79b52 /roles/lib_openshift
parent39607fb86f992253b600b8563d6c6c971fd42fb7 (diff)
downloadopenshift-93a979aa93f3edffd36375cd85b2ae134132b5ca.tar.gz
openshift-93a979aa93f3edffd36375cd85b2ae134132b5ca.tar.bz2
openshift-93a979aa93f3edffd36375cd85b2ae134132b5ca.tar.xz
openshift-93a979aa93f3edffd36375cd85b2ae134132b5ca.zip
Use return_value when value is constant
Thanks to Tim Bielawa for pointing it out.
Diffstat (limited to 'roles/lib_openshift')
-rwxr-xr-xroles/lib_openshift/src/test/unit/test_oc_adm_registry.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/roles/lib_openshift/src/test/unit/test_oc_adm_registry.py b/roles/lib_openshift/src/test/unit/test_oc_adm_registry.py
index a095d59c0..30e13ce4b 100755
--- a/roles/lib_openshift/src/test/unit/test_oc_adm_registry.py
+++ b/roles/lib_openshift/src/test/unit/test_oc_adm_registry.py
@@ -241,15 +241,9 @@ class RegistryTest(unittest.TestCase):
(0, '', ''),
]
- mock_tmpfile_copy.side_effect = [
- '/tmp/mocked_kubeconfig',
- '/tmp/mocked_kubeconfig',
- ]
+ mock_tmpfile_copy.return_value = '/tmp/mocked_kubeconfig'
- mock_oc_binary.side_effect = [
- 'oc',
- 'oc',
- ]
+ mock_oc_binary.return_value = 'oc'
results = Registry.run_ansible(params, False)