Show More
@@ -1,3 +1,6 | |||
|
1 | import os | |
|
2 | import vcs | |
|
3 | ||
|
1 | 4 | from rhodecode.model.db import Repository |
|
2 | 5 | from rhodecode.tests import * |
|
3 | 6 | |
@@ -36,6 +39,14 class TestAdminReposController(TestContr | |||
|
36 | 39 | |
|
37 | 40 | assert repo_name in response.body, 'missing new repo from the main repos list' |
|
38 | 41 | |
|
42 | ||
|
43 | #test if repository was created on filesystem | |
|
44 | try: | |
|
45 | vcs.get_repo(os.path.join(TESTS_TMP_PATH, repo_name)) | |
|
46 | except: | |
|
47 | assert False , 'no repo in filesystem' | |
|
48 | ||
|
49 | ||
|
39 | 50 | def test_create_git(self): |
|
40 | 51 | return |
|
41 | 52 | self.log_user() |
@@ -62,6 +73,11 class TestAdminReposController(TestContr | |||
|
62 | 73 | |
|
63 | 74 | assert repo_name in response.body, 'missing new repo from the main repos list' |
|
64 | 75 | |
|
76 | #test if repository was created on filesystem | |
|
77 | try: | |
|
78 | vcs.get_repo(os.path.join(TESTS_TMP_PATH, repo_name)) | |
|
79 | except: | |
|
80 | assert False , 'no repo in filesystem' | |
|
65 | 81 | |
|
66 | 82 | def test_new(self): |
|
67 | 83 | self.log_user() |
General Comments 0
You need to be logged in to leave comments.
Login now