Changeset - a560e17d88a1
[Not reviewed]
default
0 1 0
Mads Kiilerich - 7 years ago 2018-06-04 14:28:19
mads@kiilerich.com
tests: improve error reporting for api tests - show the actual expected and seen values
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/api/api_base.py
Show inline comments
 
@@ -128,7 +128,7 @@ class _BaseTestApi(object):
 
            '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 @@ class _BaseTestApi(object):
 
            '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
0 comments (0 inline, 0 general)