api: make all tests for API pass

This commit is contained in:
RhodeCode Admin 2023-07-18 09:45:22 +02:00
parent 458caff188
commit e564ec9b32
64 changed files with 39 additions and 111 deletions

View file

@ -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_,