server/test/unittest_repository.py
changeset 5556 9ab2b4c74baf
parent 5429 5ca1f8fe8a42
child 5575 8a531340c3ef
--- a/server/test/unittest_repository.py	Thu May 20 20:47:13 2010 +0200
+++ b/server/test/unittest_repository.py	Thu May 20 20:47:55 2010 +0200
@@ -205,7 +205,7 @@
         session = repo._get_session(cnxid)
         session.set_pool()
         user = session.user
-        user.fire_transition('deactivate')
+        user.cw_adapt_to('IWorkflowable').fire_transition('deactivate')
         rset = repo.execute(cnxid, 'TrInfo T WHERE T wf_info_for X, X eid %(x)s', {'x': user.eid})
         self.assertEquals(len(rset), 1)
         repo.rollback(cnxid)