Mercurial > kallithea
changeset 8867:3119d680a8d5
tests: address pedantic pytype 2021.4.1 warning
File "kallithea/tests/api/api_base.py", line 1315, in test_api_fork_repo_non_admin_no_permission_to_fork: Name 'fork_name' is not defined [name-error]
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Fri, 09 Apr 2021 06:40:58 -0400 |
parents | e6034764387e |
children | 4071f4df98c3 |
files | kallithea/tests/api/api_base.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/tests/api/api_base.py Mon Feb 22 11:44:23 2021 +0100 +++ b/kallithea/tests/api/api_base.py Fri Apr 09 06:40:58 2021 -0400 @@ -1299,8 +1299,8 @@ RepoModel().grant_user_permission(repo=self.REPO, user=db.User.DEFAULT_USER_NAME, perm='repository.none') + fork_name = 'api-repo-fork' try: - fork_name = 'api-repo-fork' id_, params = _build_data(self.apikey_regular, 'fork_repo', repoid=self.REPO, fork_name=fork_name,