diff options
| author | Barry Warsaw | 2014-08-12 16:42:12 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2014-08-12 16:42:12 -0400 |
| commit | 826261effa9d74b8ecdf1247e9ebba75fa3b2baa (patch) | |
| tree | f6e609e56db4fe202a3b85361651832433cb514b /src/mailman/testing/helpers.py | |
| parent | d4d71f71f08d6d440b17482eecc5472dcfe6cbae (diff) | |
| download | mailman-826261effa9d74b8ecdf1247e9ebba75fa3b2baa.tar.gz mailman-826261effa9d74b8ecdf1247e9ebba75fa3b2baa.tar.zst mailman-826261effa9d74b8ecdf1247e9ebba75fa3b2baa.zip | |
Diffstat (limited to 'src/mailman/testing/helpers.py')
| -rw-r--r-- | src/mailman/testing/helpers.py | 5 |
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 = {} |
