From 93a979aa93f3edffd36375cd85b2ae134132b5ca Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bonicoli Date: Tue, 18 Apr 2017 23:03:13 +0200 Subject: Use return_value when value is constant Thanks to Tim Bielawa for pointing it out. --- roles/lib_openshift/src/test/unit/test_oc_adm_registry.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'roles') 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) -- cgit v1.2.3