devtools/testlib.py
changeset 9404 3e3e9b37e177
parent 9402 2c48c091b6a2
child 9460 a2a0bc984863
--- a/devtools/testlib.py	Mon Jan 13 13:56:16 2014 +0100
+++ b/devtools/testlib.py	Mon Jan 13 15:56:52 2014 +0100
@@ -274,7 +274,7 @@
         while self._open_access:
             self._open_access.pop().close()
 
-    @deprecated('[4.0] explicitly use RepoAccess object in test instead')
+    @deprecated('[3.19] explicitly use RepoAccess object in test instead')
     def set_cnx(self, cnx):
         """"""
         # XXX we want to deprecate this
@@ -287,7 +287,7 @@
             self._current_clt_cnx = cnx
 
     @property
-    @deprecated('[4.0] explicitly use RepoAccess object in test instead')
+    @deprecated('[3.19] explicitly use RepoAccess object in test instead')
     def cnx(self):
         # XXX we want to deprecate this
         clt_cnx = self._current_clt_cnx
@@ -304,7 +304,7 @@
             self._cnxs.remove(cnx)
 
     @property
-    @deprecated('[4.0] explicitly use RepoAccess object in test instead')
+    @deprecated('[3.19] explicitly use RepoAccess object in test instead')
     def session(self):
         """return current server side session"""
         # XXX We want to use a srv_connection instead and deprecate this
@@ -320,17 +320,17 @@
         return session
 
     @property
-    @deprecated('[4.0] explicitly use RepoAccess object in test instead')
+    @deprecated('[3.19] explicitly use RepoAccess object in test instead')
     def websession(self):
         return self.session
 
     @property
-    @deprecated('[4.0] explicitly use RepoAccess object in test instead')
+    @deprecated('[3.19] explicitly use RepoAccess object in test instead')
     def adminsession(self):
         """return current server side session (using default manager account)"""
         return self._admin_session
 
-    @deprecated('[4.0] explicitly use RepoAccess object in test instead')
+    @deprecated('[3.19] explicitly use RepoAccess object in test instead')
     def login(self, login, **kwargs):
         """return a connection for the given login/password"""
         __ = kwargs.pop('autoclose', True) # not used anymore
@@ -345,7 +345,7 @@
         clt_cnx.__enter__()
         return TestCaseConnectionProxy(self, clt_cnx)
 
-    @deprecated('[4.0] explicitly use RepoAccess object in test instead')
+    @deprecated('[3.19] explicitly use RepoAccess object in test instead')
     def restore_connection(self):
         self._pop_custom_cnx()
 
@@ -383,7 +383,7 @@
     # db api ##################################################################
 
     @nocoverage
-    @deprecated('[4.0] explicitly use RepoAccess object in test instead')
+    @deprecated('[3.19] explicitly use RepoAccess object in test instead')
     def cursor(self, req=None):
         if req is not None:
             return req.cnx
@@ -391,7 +391,7 @@
             return self.cnx
 
     @nocoverage
-    @deprecated('[4.0] explicitly use RepoAccess object in test instead')
+    @deprecated('[3.19] explicitly use RepoAccess object in test instead')
     def execute(self, rql, args=None, req=None):
         """executes <rql>, builds a resultset, and returns a couple (rset, req)
         where req is a FakeRequest
@@ -400,7 +400,7 @@
         return req.execute(unicode(rql), args)
 
     @nocoverage
-    @deprecated('[4.0] explicitly use RepoAccess object in test instead')
+    @deprecated('[3.19] explicitly use RepoAccess object in test instead')
     def commit(self):
         try:
             return self.cnx.commit()
@@ -408,7 +408,7 @@
             self.session.set_cnxset() # ensure cnxset still set after commit
 
     @nocoverage
-    @deprecated('[4.0] explicitly use RepoAccess object in test instead')
+    @deprecated('[3.19] explicitly use RepoAccess object in test instead')
     def rollback(self):
         try:
             self.cnx.rollback()
@@ -418,7 +418,7 @@
             self.session.set_cnxset() # ensure cnxset still set after commit
 
     requestcls = fake.FakeRequest
-    @deprecated('[4.0] explicitly use RepoAccess object in test instead')
+    @deprecated('[3.19] explicitly use RepoAccess object in test instead')
     def request(self, rollbackfirst=False, url=None, headers={}, **kwargs):
         """return a web ui request"""
         if rollbackfirst:
@@ -429,7 +429,7 @@
 
     # server side db api #######################################################
 
-    @deprecated('[4.0] explicitly use RepoAccess object in test instead')
+    @deprecated('[3.19] explicitly use RepoAccess object in test instead')
     def sexecute(self, rql, args=None):
         self.session.set_cnxset()
         return self.session.execute(rql, args)