Changeset - c7a6af663d68
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-08-28 10:23:31
marcin@python-works.com
fixed tests for new locking flag of repos groups
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/tests/models/test_repos_groups.py
Show inline comments
 
@@ -50,13 +50,14 @@ class TestReposGroups(unittest.TestCase)
 
    def __update_group(self, id_, path, desc='desc', parent_id=None):
 
        form_data = dict(
 
            group_name=path,
 
            group_description=desc,
 
            group_parent_id=parent_id,
 
            perms_updates=[],
 
            perms_new=[]
 
            perms_new=[],
 
            enable_locking=False
 
        )
 
        gr = ReposGroupModel().update(id_, form_data)
 
        return gr
 

	
 
    def test_create_group(self):
 
        g = _make_group('newGroup')
 
@@ -127,13 +128,14 @@ class TestReposGroups(unittest.TestCase)
 
                         fork_name=None,
 
                         description=None,
 
                         repo_group=None,
 
                         private=False,
 
                         repo_type='hg',
 
                         clone_uri=None,
 
                         landing_rev='tip')
 
                         landing_rev='tip',
 
                         enable_locking=False)
 
        cur_user = User.get_by_username(TEST_USER_ADMIN_LOGIN)
 
        r = RepoModel().create(form_data, cur_user)
 

	
 
        self.assertEqual(r.repo_name, 'john')
 

	
 
        # put repo into group
0 comments (0 inline, 0 general)