# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1235650233 -3600 # Node ID 3abae727d121aa4f88048115af8e7fd901c1e7fb # Parent b52b1679f4e432fb1e417a17f604e7bfb76dad9c fix .cnxid of RepositoryBasedTC to be actual cnx id... diff -r b52b1679f4e4 -r 3abae727d121 devtools/apptest.py --- a/devtools/apptest.py Thu Feb 26 12:44:15 2009 +0100 +++ b/devtools/apptest.py Thu Feb 26 13:10:33 2009 +0100 @@ -407,6 +407,7 @@ self.__close(self.cnxid) # other utilities ######################################################### + def set_debug(self, debugmode): from cubicweb.server import set_debug set_debug(debugmode) @@ -452,7 +453,7 @@ self.__commit = repo.commit self.__rollback = repo.rollback self.__close = repo.close - self.cnxid = repo.connect(*self.default_user_password()) + self.cnxid = self._cnx.sessionid self.session = repo._sessions[self.cnxid] # XXX copy schema since hooks may alter it and it may be not fully # cleaned (missing some schema synchronization support)