Changeset - b1d6478d4561
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 15 years ago 2011-02-12 21:22:30
marcin@python-works.com
added repo creation filesystem test
1 file changed with 16 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/tests/functional/test_admin_repos.py
Show inline comments
 
import os
 
import vcs
 

	
 
from rhodecode.model.db import Repository
 
from rhodecode.tests import *
 

	
 
@@ -36,6 +39,14 @@ class TestAdminReposController(TestContr
 

	
 
        assert repo_name in response.body, 'missing new repo from the main repos list'
 

	
 

	
 
        #test if repository was created on filesystem
 
        try:
 
            vcs.get_repo(os.path.join(TESTS_TMP_PATH, repo_name))
 
        except:
 
            assert False , 'no repo in filesystem'
 

	
 

	
 
    def test_create_git(self):
 
        return
 
        self.log_user()
 
@@ -62,6 +73,11 @@ class TestAdminReposController(TestContr
 

	
 
        assert repo_name in response.body, 'missing new repo from the main repos list'
 

	
 
        #test if repository was created on filesystem
 
        try:
 
            vcs.get_repo(os.path.join(TESTS_TMP_PATH, repo_name))
 
        except:
 
            assert False , 'no repo in filesystem'
 

	
 
    def test_new(self):
 
        self.log_user()
0 comments (0 inline, 0 general)