tests: fixed problem with non-ascii errors
This commit is contained in:
parent
004875e902
commit
40d5038ad3
1 changed files with 2 additions and 1 deletions
|
|
@ -49,7 +49,8 @@ def assert_call_ok(id_, given):
|
|||
def assert_ok(id_, expected, given):
|
||||
given = json.loads(given)
|
||||
if given.get('error'):
|
||||
pytest.fail("Unexpected ERROR in success response: {}".format(given['error']))
|
||||
err = given['error']
|
||||
pytest.fail(u"Unexpected ERROR in success response: {}".format(err))
|
||||
|
||||
expected = jsonify({
|
||||
'id': id_,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue