# HG changeset patch # User Mads Kiilerich # Date 2021-04-09 12:40:58 # Node ID 3119d680a8d52ce242b5f376810d0a4c7606f9be # Parent e6034764387ef53ca61374b152e6b08dc3373f4d 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] diff --git a/kallithea/tests/api/api_base.py b/kallithea/tests/api/api_base.py --- a/kallithea/tests/api/api_base.py +++ b/kallithea/tests/api/api_base.py @@ -1299,8 +1299,8 @@ class _BaseTestApi(object): 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,