From 826261effa9d74b8ecdf1247e9ebba75fa3b2baa Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 12 Aug 2014 16:42:12 -0400 Subject: First pass at converting to falcon for the REST API layer. Currently, only //system and its subpaths work, but basic auth does work too. Requires a refactoring modification to falcon. --- src/mailman/testing/helpers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mailman/testing/helpers.py') 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 = {} -- cgit v1.2.3-70-g09d2