From 842b69be27aa97bb1df5dde97029d6cbf82aebfb Mon Sep 17 00:00:00 2001 From: Kenny Woodson Date: Wed, 8 Mar 2017 11:43:45 -0500 Subject: Fixed for linting. --- roles/lib_openshift/src/test/unit/test_oc_adm_registry.py | 1 - roles/lib_openshift/src/test/unit/test_oc_adm_router.py | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'roles/lib_openshift/src') 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 a663c5a97..540048119 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 @@ -205,7 +205,6 @@ class RegistryTest(unittest.TestCase): } ]}''' - @mock.patch('oc_adm_registry.Utils._write') @mock.patch('oc_adm_registry.Utils.create_tmpfile_copy') @mock.patch('oc_adm_registry.Registry._run') diff --git a/roles/lib_openshift/src/test/unit/test_oc_adm_router.py b/roles/lib_openshift/src/test/unit/test_oc_adm_router.py index 5184990e8..9f56f1e54 100755 --- a/roles/lib_openshift/src/test/unit/test_oc_adm_router.py +++ b/roles/lib_openshift/src/test/unit/test_oc_adm_router.py @@ -286,7 +286,6 @@ class RouterTest(unittest.TestCase): ] }''' - @mock.patch('oc_adm_router.Utils._write') @mock.patch('oc_adm_router.Utils.create_tmpfile_copy') @mock.patch('oc_adm_router.Router._run') @@ -306,7 +305,6 @@ class RouterTest(unittest.TestCase): 'latest_images': None, 'clusterip': None, 'portalip': None, - 'selector': None, 'session_affinity': None, 'service_type': None, 'kubeconfig': '/etc/origin/master/admin.kubeconfig', @@ -327,8 +325,7 @@ class RouterTest(unittest.TestCase): 'stats_user': None, 'stats_password': None, 'stats_port': 1936, - 'edits': []} - + 'edits': []} mock_cmd.side_effect = [ (1, '', 'Error from server (NotFound): deploymentconfigs "router" not found'), -- cgit v1.2.3