summaryrefslogtreecommitdiff
path: root/src/mailman/testing/helpers.py
diff options
context:
space:
mode:
authorBarry Warsaw2014-11-15 12:01:30 -0500
committerBarry Warsaw2014-11-15 12:01:30 -0500
commit26fe2c0d37d4da51dbda077cdf46a4cd6cec22a5 (patch)
tree4c5f78bcb5236921291b30d15003666d58c47194 /src/mailman/testing/helpers.py
parent50127508451e1099e9e48266c1fb05b3d1ee2a4b (diff)
parent368100001d11a7585dd424613fbc905269596ebd (diff)
downloadmailman-26fe2c0d37d4da51dbda077cdf46a4cd6cec22a5.tar.gz
mailman-26fe2c0d37d4da51dbda077cdf46a4cd6cec22a5.tar.zst
mailman-26fe2c0d37d4da51dbda077cdf46a4cd6cec22a5.zip
Diffstat (limited to 'src/mailman/testing/helpers.py')
-rw-r--r--src/mailman/testing/helpers.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py
index 1ef9e964e..aab23ab75 100644
--- a/src/mailman/testing/helpers.py
+++ b/src/mailman/testing/helpers.py
@@ -313,8 +313,9 @@ def call_api(url, data=None, method=None, username=None, password=None):
:param password: The HTTP Basic Auth password. None means use the value
from the configuration.
:type username: str
- :return: The response object and the JSON decoded content, if there is
- any. If not, the second tuple item will be None.
+ :return: A 2-tuple containing the JSON decoded content (if there is any,
+ else None) and the response object.
+ :rtype: 2-tuple of (dict, response)
:raises HTTPError: when a non-2xx return code is received.
"""
headers = {}