libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quent...@apache.org
Subject [1/6] libcloud git commit: remove dead returns test_openstack.py
Date Fri, 09 Mar 2018 04:55:43 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 2b298b7cd -> 4d0f9e0a6


remove dead returns test_openstack.py

removed unreachable return statements in test cases

Closes #1178

Signed-off-by: Quentin Pradet <quentinp@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/4dd20ff8
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/4dd20ff8
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/4dd20ff8

Branch: refs/heads/trunk
Commit: 4dd20ff80bba5de512923ad9f9fb92821b38efca
Parents: 2b298b7
Author: Rick van de Loo <rickvandeloo@gmail.com>
Authored: Sun Mar 4 14:51:42 2018 +0100
Committer: Quentin Pradet <quentinp@apache.org>
Committed: Fri Mar 9 08:51:41 2018 +0400

----------------------------------------------------------------------
 libcloud/test/compute/test_openstack.py | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/4dd20ff8/libcloud/test/compute/test_openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_openstack.py b/libcloud/test/compute/test_openstack.py
index e9d9315..54606ef 100644
--- a/libcloud/test/compute/test_openstack.py
+++ b/libcloud/test/compute/test_openstack.py
@@ -2050,8 +2050,6 @@ class OpenStack_1_1_MockHttp(MockHttp, unittest.TestCase):
         else:
             raise NotImplementedError()
 
-        return (httplib.OK, body, self.json_content_headers, httplib.responses[httplib.OK])
-
     def _v1_1_slug_os_networks(self, method, url, body, headers):
         if method == 'GET':
             body = self.fixtures.load('_os_networks.json')
@@ -2074,8 +2072,6 @@ class OpenStack_1_1_MockHttp(MockHttp, unittest.TestCase):
         else:
             raise NotImplementedError()
 
-        return (httplib.OK, body, self.json_content_headers, httplib.responses[httplib.OK])
-
     def _v1_1_slug_servers_12063_action(self, method, url, body, headers):
         if method == 'POST':
             body = self.fixtures.load('_servers_unpause.json')
@@ -2083,8 +2079,6 @@ class OpenStack_1_1_MockHttp(MockHttp, unittest.TestCase):
         else:
             raise NotImplementedError()
 
-        return (httplib.OK, body, self.json_content_headers, httplib.responses[httplib.OK])
-
     def _v1_1_slug_servers_12086_action(self, method, url, body, headers):
         if method == 'POST':
             body = self.fixtures.load('_servers_12086_console_output.json')


Mime
View raw message