[devtools] Drop old init_test_database backward compat
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 20 May 2016 11:32:23 +0200
changeset 11267 c2e7fd344b90
parent 11266 ea25d87a8537
child 11268 f6938ae0dea8
[devtools] Drop old init_test_database backward compat
cubicweb/devtools/__init__.py
--- a/cubicweb/devtools/__init__.py	Fri May 20 14:43:19 2016 +0200
+++ b/cubicweb/devtools/__init__.py	Fri May 20 11:32:23 2016 +0200
@@ -886,15 +886,3 @@
         return handler
     else:
         raise ValueError('no initialization function for driver %r' % driver)
-
-### compatibility layer ##############################################
-from logilab.common.deprecation import deprecated
-
-@deprecated("please use the new DatabaseHandler mecanism")
-def init_test_database(config=None, configdir='data', apphome=None):
-    """init a test database for a specific driver"""
-    if config is None:
-        config = TestServerConfiguration(apphome=apphome)
-    handler = get_test_db_handler(config)
-    handler.build_db_cache()
-    return handler.get_repo_and_cnx()