# HG changeset patch # User Marcin Kuzminski # Date 2011-02-12 20:22:30 # Node ID b1d6478d4561b4ad1c5aefd63d8b88bce0f1b7b5 # Parent 405b80e4ccd5645dbbba657a5da7fdc06006575a added repo creation filesystem test diff --git a/rhodecode/tests/functional/test_admin_repos.py b/rhodecode/tests/functional/test_admin_repos.py --- a/rhodecode/tests/functional/test_admin_repos.py +++ b/rhodecode/tests/functional/test_admin_repos.py @@ -1,3 +1,6 @@ +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()