# HG changeset patch # User Adrien Di Mascio # Date 1278595853 -7200 # Node ID f7768f44b4ac159b0ec7c5aaf4c4791ba56121d4 # Parent bd0b98a1086bf2daa6f845da86e8cd6bad6c2678 [tests] make sure controllers created by ctrl_publish() have a valid appli attribute diff -r bd0b98a1086b -r f7768f44b4ac devtools/testlib.py --- a/devtools/testlib.py Wed Jul 07 15:21:21 2010 +0200 +++ b/devtools/testlib.py Thu Jul 08 15:30:53 2010 +0200 @@ -518,7 +518,7 @@ def ctrl_publish(self, req, ctrl='edit'): """call the publish method of the edit controller""" - ctrl = self.vreg['controllers'].select(ctrl, req) + ctrl = self.vreg['controllers'].select(ctrl, req, appli=self.app) try: result = ctrl.publish() req.cnx.commit()