You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2021/11/07 18:42:47 UTC
[libcloud] 07/14: Update requests mock, test a change.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit debbf9f76c8642c56299fbcbb6db42b7d1dae4ff
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Sun Nov 7 00:03:33 2021 +0100
Update requests mock, test a change.
---
libcloud/test/test_utils.py | 4 ++--
requirements-tests.txt | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libcloud/test/test_utils.py b/libcloud/test/test_utils.py
index cbec7bd..05590e8 100644
--- a/libcloud/test/test_utils.py
+++ b/libcloud/test/test_utils.py
@@ -435,8 +435,8 @@ def test_decorator():
def test_get_response_object():
with requests_mock.mock() as m:
- m.get('http://test.com/test', text='data')
- response = get_response_object('http://test.com/test')
+ m.get('https://test.com/test', text='data')
+ response = get_response_object('https://test.com/test')
assert response.body == 'data'
diff --git a/requirements-tests.txt b/requirements-tests.txt
index 5a9c6ca..09b3c18 100644
--- a/requirements-tests.txt
+++ b/requirements-tests.txt
@@ -11,7 +11,7 @@ codecov==2.1.12
coverage==4.5.4
requests>=2.25.0; python_version <= '3.5'
requests>=2.26.0; python_version >= '3.6'
-requests_mock
+requests_mock==1.9.3
# 5.3.2 is latest version which still supports Python 3.5, >= 6.2.5 is needed for Python 3.10
pytest==5.3.2; python_version <= '3.5'
pytest==6.2.5; python_version >= '3.6'