aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/tests/test_validators.py
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2012-10-08 23:00:31 +0200
committerMarcin Kuzminski <marcin@python-works.com>2012-10-08 23:00:31 +0200
commit3540a8c209bca3f258dc409d876b80735555e2b3 (patch)
tree05ddc9d12f0ff10c07a4534bf7d9689c021373d1 /rhodecode/tests/test_validators.py
parent3b7367bdcaf84aa81b9809a5ef5b94070ce973ea (diff)
fixed validator tests
--HG-- branch : beta
Diffstat (limited to 'rhodecode/tests/test_validators.py')
-rw-r--r--rhodecode/tests/test_validators.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/rhodecode/tests/test_validators.py b/rhodecode/tests/test_validators.py
index c1b2f0d2..fe29550c 100644
--- a/rhodecode/tests/test_validators.py
+++ b/rhodecode/tests/test_validators.py
@@ -10,7 +10,7 @@ from rhodecode.model.users_group import UsersGroupModel
from rhodecode.model.meta import Session
from rhodecode.model.repos_group import ReposGroupModel
from rhodecode.config.routing import ADMIN_PREFIX
-from rhodecode.model.db import ChangesetStatus
+from rhodecode.model.db import ChangesetStatus, Repository
from rhodecode.model.changeset_status import ChangesetStatusModel
from rhodecode.model.comment import ChangesetCommentsModel
@@ -227,7 +227,8 @@ class TestReposGroups(unittest.TestCase):
self.assertRaises(formencode.Invalid, validator.to_python, 123)
def test_NotReviewedRevisions(self):
- validator = v.NotReviewedRevisions()
+ repo_id = Repository.get_by_repo_name(HG_REPO).repo_id
+ validator = v.NotReviewedRevisions(repo_id)
rev = '0' * 40
# add status for a rev, that should throw an error because it is already
# reviewed