Mercurial > kallithea
diff rhodecode/tests/functional/test_changeset_comments.py @ 3797:d7488551578e beta
synced vcs with upstream
- moved subprocessio module to VCS
- many small changes to make embedded vcs as similar to to external lib
- use only absolute imports
- patch vcs config during load pylons env
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 27 Apr 2013 11:24:25 +0200 |
parents | c4d8ed624728 |
children | a5888ca796b5 |
line wrap: on
line diff
--- a/rhodecode/tests/functional/test_changeset_comments.py Sat Apr 27 11:45:27 2013 +0200 +++ b/rhodecode/tests/functional/test_changeset_comments.py Sat Apr 27 11:24:25 2013 +0200 @@ -1,27 +1,28 @@ from rhodecode.tests import * from rhodecode.model.db import ChangesetComment, Notification, User, \ UserNotification +from rhodecode.model.meta import Session class TestChangeSetCommentsController(TestController): def setUp(self): for x in ChangesetComment.query().all(): - self.Session.delete(x) - self.Session.commit() + Session().delete(x) + Session().commit() for x in Notification.query().all(): - self.Session.delete(x) - self.Session.commit() + Session().delete(x) + Session().commit() def tearDown(self): for x in ChangesetComment.query().all(): - self.Session.delete(x) - self.Session.commit() + Session().delete(x) + Session().commit() for x in Notification.query().all(): - self.Session.delete(x) - self.Session.commit() + Session().delete(x) + Session().commit() def test_create(self): self.log_user()