api: make all tests for API pass
This commit is contained in:
parent
458caff188
commit
e564ec9b32
64 changed files with 39 additions and 111 deletions
|
|
@ -1,4 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright (C) 2010-2020 RhodeCode GmbH
|
||||
#
|
||||
|
|
@ -50,7 +49,7 @@ def assert_ok(id_, expected, given):
|
|||
given = json.loads(given)
|
||||
if given.get('error'):
|
||||
err = given['error']
|
||||
pytest.fail(u"Unexpected ERROR in success response: {}".format(err))
|
||||
pytest.fail(f"Unexpected ERROR in expected success response: `{err}`")
|
||||
|
||||
expected = jsonify({
|
||||
'id': id_,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue