##// END OF EJS Templates
tests: cleanup selective 'base' imports of test_admin_repo_groups.py...
Thomas De Schampheleire -
r8709:7da398c0 stable
parent child Browse files
Show More
@@ -1,23 +1,23 b''
1 from kallithea.model import meta
1 from kallithea.model import meta
2 from kallithea.model.repo_group import RepoGroupModel
2 from kallithea.model.repo_group import RepoGroupModel
3 from kallithea.tests.base import TestController, url
3 from kallithea.tests import base
4 from kallithea.tests.fixture import Fixture
4 from kallithea.tests.fixture import Fixture
5
5
6
6
7 fixture = Fixture()
7 fixture = Fixture()
8
8
9
9
10 class TestRepoGroupsController(TestController):
10 class TestRepoGroupsController(base.TestController):
11
11
12 def test_case_insensitivity(self):
12 def test_case_insensitivity(self):
13 self.log_user()
13 self.log_user()
14 group_name = 'newgroup'
14 group_name = 'newgroup'
15 response = self.app.post(url('repos_groups'),
15 response = self.app.post(base.url('repos_groups'),
16 fixture._get_repo_group_create_params(group_name=group_name,
16 fixture._get_repo_group_create_params(group_name=group_name,
17 _session_csrf_secret_token=self.session_csrf_secret_token()))
17 _session_csrf_secret_token=self.session_csrf_secret_token()))
18 # try to create repo group with swapped case
18 # try to create repo group with swapped case
19 swapped_group_name = group_name.swapcase()
19 swapped_group_name = group_name.swapcase()
20 response = self.app.post(url('repos_groups'),
20 response = self.app.post(base.url('repos_groups'),
21 fixture._get_repo_group_create_params(group_name=swapped_group_name,
21 fixture._get_repo_group_create_params(group_name=swapped_group_name,
22 _session_csrf_secret_token=self.session_csrf_secret_token()))
22 _session_csrf_secret_token=self.session_csrf_secret_token()))
23 response.mustcontain('already exists')
23 response.mustcontain('already exists')
General Comments 0
You need to be logged in to leave comments. Login now