[test] avoid cache issue
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 20 Jul 2015 12:03:04 +0200
changeset 1824 82ad4a58ea49
parent 1823 1401ebf24469
child 1825 b859e64fc3ee
[test] avoid cache issue Fix test with cubicweb 3.21 by clearing caches before looking at execution status, since we may have cached an old value.
test/unittest_hooks.py
--- a/test/unittest_hooks.py	Fri May 29 19:38:57 2015 +0200
+++ b/test/unittest_hooks.py	Mon Jul 20 12:03:04 2015 +0200
@@ -371,6 +371,7 @@
             cnx.commit()
             te.cw_adapt_to('IWorkflowable').fire_transition('fail')
             cnx.commit()
+            te.cw_clear_all_caches()
             #the status should not be waiting execution !
             self.assertNotEqual(u'waiting execution', te.status)