changeset 1037:b1d6478d4561 beta

added repo creation filesystem test
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 12 Feb 2011 21:22:30 +0100
parents 405b80e4ccd5
children 5554aa9c2480
files rhodecode/tests/functional/test_admin_repos.py
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/tests/functional/test_admin_repos.py	Sat Feb 12 21:21:23 2011 +0100
+++ b/rhodecode/tests/functional/test_admin_repos.py	Sat Feb 12 21:22:30 2011 +0100
@@ -1,3 +1,6 @@
+import os
+import vcs
+
 from rhodecode.model.db import Repository
 from rhodecode.tests import *
 
@@ -36,6 +39,14 @@
 
         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 @@
 
         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()