changeset 7325:a560e17d88a1

tests: improve error reporting for api tests - show the actual expected and seen values
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 04 Jun 2018 14:28:19 +0200
parents a6927fb86fa9
children abaf8e1033a6
files kallithea/tests/api/api_base.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/api/api_base.py	Mon Jun 04 14:27:51 2018 +0200
+++ b/kallithea/tests/api/api_base.py	Mon Jun 04 14:28:19 2018 +0200
@@ -128,7 +128,7 @@
             'result': expected
         })
         given = json.loads(given)
-        assert expected == given
+        assert expected == given, (expected, given)
 
     def _compare_error(self, id_, expected, given):
         expected = jsonify({
@@ -137,7 +137,7 @@
             'result': None
         })
         given = json.loads(given)
-        assert expected == given
+        assert expected == given, (expected, given)
 
     def test_Optional_object(self):
         from kallithea.controllers.api.api import Optional