--- a/entities/test/unittest_wfobjs.py Fri Jun 13 13:54:28 2014 +0200
+++ b/entities/test/unittest_wfobjs.py Tue Jun 10 16:01:49 2014 +0200
@@ -569,8 +569,9 @@
with self.admin_access.web_request() as req:
user = self.create_user(req, 'member', surname=u'toto')
req.execute('SET X custom_workflow WF WHERE X eid %(x)s, WF eid %(wf)s',
- {'wf': wf.eid, 'x': user.eid})
+ {'wf': wf.eid, 'x': user.eid})
req.cnx.commit()
+ user.cw_clear_all_caches()
iworkflowable = user.cw_adapt_to('IWorkflowable')
self.assertEqual(iworkflowable.state, 'dead')