summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qtip/reporter/testapi.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/qtip/reporter/testapi.py b/qtip/reporter/testapi.py
index a0be5379..512dadde 100644
--- a/qtip/reporter/testapi.py
+++ b/qtip/reporter/testapi.py
@@ -29,19 +29,21 @@ def validate_payload():
if set(payload.keys()) != payload_template:
missing_parameters = list(payload_template -
set(payload.keys()))
- print "Missing Parameters -- {}".\
- format(",".join(missing_parameters))
+ print("Missing Parameters -- {}".
+ format(",".join(missing_parameters)))
raise MissingParamsError("push_results", missing_parameters)
invalid_params = []
for key in payload:
if (payload[key] == "") or (payload[key] is None):
invalid_params.append(key)
if len(invalid_params) > 0:
- print "Invalid or missing values of parameters -- `{}`".\
- format(",".join(invalid_params))
+ print ("Invalid or missing values of parameters -- `{}`".
+ format(",".join(invalid_params)))
raise InvalidParamsError("push_results", invalid_params)
return func(testapi_url, payload)
+
return _execute
+
return _decorator