You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2017/04/13 09:33:08 UTC

[02/46] libcloud git commit: remove more unneeded code

remove more unneeded code


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

Branch: refs/heads/trunk
Commit: f4d3f6d9d0db464aab45ac67e0f28c023f8680bb
Parents: 2540abb
Author: Anthony Shaw <an...@apache.org>
Authored: Tue Apr 11 10:21:15 2017 +1000
Committer: Anthony Shaw <an...@apache.org>
Committed: Tue Apr 11 10:21:15 2017 +1000

----------------------------------------------------------------------
 libcloud/test/__init__.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/f4d3f6d9/libcloud/test/__init__.py
----------------------------------------------------------------------
diff --git a/libcloud/test/__init__.py b/libcloud/test/__init__.py
index 1f474f2..5d6a3f9 100644
--- a/libcloud/test/__init__.py
+++ b/libcloud/test/__init__.py
@@ -17,7 +17,7 @@ import sys
 import random
 import requests
 
-from libcloud.common.base import LibcloudConnection
+from libcloud.http import LibcloudConnection
 from libcloud.utils.py3 import PY2
 
 if PY2:
@@ -170,7 +170,9 @@ class MockHttp(BaseMockHttpObject, LibcloudConnection):
         with requests_mock.mock() as m:
             m.register_uri(method, url, text=r_body, reason=r_reason,
                            headers=r_headers, status_code=r_status)
-            super(MockHttp, self).request(method, url, body, headers, raw, stream)
+            super(MockHttp, self).request(
+                method=method, url=url, body=body, headers=headers,
+                raw=raw, stream=stream)
 
     # Mock request/response example
     def _example(self, method, url, body, headers):