diff -r 75a6b2f40c44 -r 2dd0dcb2e5f9 cubicweb/devtools/repotest.py --- a/cubicweb/devtools/repotest.py Fri Sep 15 16:31:33 2017 +0200 +++ b/cubicweb/devtools/repotest.py Fri Nov 03 16:31:59 2017 +0100 @@ -142,22 +142,11 @@ self.ueid = self.admin_access._user.eid assert self.ueid != -1 self.repo._type_cache = {} # clear cache - self.maxeid = self.get_max_eid() do_monkey_patch() self._dumb_sessions = [] - def get_max_eid(self): - with self.admin_access.cnx() as cnx: - return cnx.execute('Any MAX(X)')[0][0] - - def cleanup(self): - with self.admin_access.cnx() as cnx: - cnx.execute('DELETE Any X WHERE X eid > %s' % self.maxeid) - cnx.commit() - def tearDown(self): undo_monkey_patch() - self.cleanup() assert self.admin_access._user.eid != -1 def set_debug(self, debug):