[test] must now commit file creation since the later ValidationError trigger a rollback stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 29 Sep 2010 14:22:12 +0200
branchstable
changeset 6365 a15cc5e16178
parent 6364 ad9ed9803eb6
child 6366 1806148d6ce8
child 6369 a151453dc564
[test] must now commit file creation since the later ValidationError trigger a rollback
web/test/unittest_views_basecontrollers.py
--- a/web/test/unittest_views_basecontrollers.py	Wed Sep 29 12:54:35 2010 +0200
+++ b/web/test/unittest_views_basecontrollers.py	Wed Sep 29 14:22:12 2010 +0200
@@ -222,6 +222,7 @@
     def test_interval_bound_constraint_success(self):
         feid = self.execute('INSERT File X: X data_name "toto.txt", X data %(data)s',
                             {'data': Binary('yo')})[0][0]
+        self.commit()
         req = self.request()
         req.form = {'eid': ['X'],
                     '__type:X': 'Salesterm',