tests: fix 3 more unit-tests

This commit is contained in:
Andrii V 2025-06-25 19:22:38 +02:00
parent e99780dea1
commit 9bbdde8d18

View file

@ -71,7 +71,7 @@ class TestLock(object):
self.apikey_regular, "lock", userid=TEST_USER_ADMIN_LOGIN, repoid=repo_name, locked=True self.apikey_regular, "lock", userid=TEST_USER_ADMIN_LOGIN, repoid=repo_name, locked=True
) )
response = api_call(self.app, params) response = api_call(self.app, params)
expected = "userid is not the same as your user" expected = "Provided userid is not the same the user calling this function"
assert_error(id_, expected, given=response.body) assert_error(id_, expected, given=response.body)
def test_api_lock_repo_lock_aquire_non_admin_not_his_repo(self, backend): def test_api_lock_repo_lock_aquire_non_admin_not_his_repo(self, backend):