diff rhodecode/tests/functional/test_forks.py @ 1749:8ecc6b8229a5 beta

commit less models - models don't do any commits(with few exceptions) - all db transactions should be handled by higher level modules like controllers, celery tasks
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 02 Dec 2011 22:31:13 +0200
parents 8321b3d19b1f
children 162bf5c978f8
line wrap: on
line diff
--- a/rhodecode/tests/functional/test_forks.py	Fri Dec 02 00:15:26 2011 +0200
+++ b/rhodecode/tests/functional/test_forks.py	Fri Dec 02 22:31:13 2011 +0200
@@ -65,7 +65,7 @@
                       % (repo_name, fork_name) in response.session['flash'][0])
 
         #test if the fork was created in the database
-        fork_repo = self.Session().query(Repository)\
+        fork_repo = self.Session.query(Repository)\
             .filter(Repository.repo_name == fork_name).one()
 
         self.assertEqual(fork_repo.repo_name, fork_name)