##// END OF EJS Templates
fixed validator tests
marcink -
r2898:74672d4b beta
parent child Browse files
Show More
@@ -10,7 +10,7 b' from rhodecode.model.users_group import '
10 10 from rhodecode.model.meta import Session
11 11 from rhodecode.model.repos_group import ReposGroupModel
12 12 from rhodecode.config.routing import ADMIN_PREFIX
13 from rhodecode.model.db import ChangesetStatus
13 from rhodecode.model.db import ChangesetStatus, Repository
14 14 from rhodecode.model.changeset_status import ChangesetStatusModel
15 15 from rhodecode.model.comment import ChangesetCommentsModel
16 16
@@ -227,7 +227,8 b' class TestReposGroups(unittest.TestCase)'
227 227 self.assertRaises(formencode.Invalid, validator.to_python, 123)
228 228
229 229 def test_NotReviewedRevisions(self):
230 validator = v.NotReviewedRevisions()
230 repo_id = Repository.get_by_repo_name(HG_REPO).repo_id
231 validator = v.NotReviewedRevisions(repo_id)
231 232 rev = '0' * 40
232 233 # add status for a rev, that should throw an error because it is already
233 234 # reviewed
General Comments 0
You need to be logged in to leave comments. Login now