Module: check_mk
Branch: master
Commit: 6a7dbff6f11493424bcd64a61d642bb9fe682532
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6a7dbff6f11493…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 2 11:06:42 2016 +0100
Printing out whole response in case of API errors
---
tests/testlib/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index aeac117..d57c038 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -674,7 +674,7 @@ class CMKWebSession(WebSession):
response = json.loads(req.text)
assert response["result_code"] == 0, \
- "An error occured: %s" % response["result"]
+ "An error occured: %r" % response
return response["result"]