Mercurial > kallithea
changeset 8923:7da398c076a0 stable
tests: cleanup selective 'base' imports of test_admin_repo_groups.py
It is considered cleaner to have more top-level imports rather than
selecting specific names.
author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> |
---|---|
date | Wed, 01 Sep 2021 22:46:42 +0200 |
parents | d625696a5fb1 |
children | 2ef4f7c0031e |
files | kallithea/tests/functional/test_admin_repo_groups.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/tests/functional/test_admin_repo_groups.py Mon Mar 07 17:52:02 2022 +0100 +++ b/kallithea/tests/functional/test_admin_repo_groups.py Wed Sep 01 22:46:42 2021 +0200 @@ -1,23 +1,23 @@ from kallithea.model import meta from kallithea.model.repo_group import RepoGroupModel -from kallithea.tests.base import TestController, url +from kallithea.tests import base from kallithea.tests.fixture import Fixture fixture = Fixture() -class TestRepoGroupsController(TestController): +class TestRepoGroupsController(base.TestController): def test_case_insensitivity(self): self.log_user() group_name = 'newgroup' - response = self.app.post(url('repos_groups'), + response = self.app.post(base.url('repos_groups'), fixture._get_repo_group_create_params(group_name=group_name, _session_csrf_secret_token=self.session_csrf_secret_token())) # try to create repo group with swapped case swapped_group_name = group_name.swapcase() - response = self.app.post(url('repos_groups'), + response = self.app.post(base.url('repos_groups'), fixture._get_repo_group_create_params(group_name=swapped_group_name, _session_csrf_secret_token=self.session_csrf_secret_token())) response.mustcontain('already exists')