# HG changeset patch # User Sylvain Thénault # Date 1463736743 -7200 # Node ID c2e7fd344b90f11057d4ca1479b867c4e2fe2105 # Parent ea25d87a8537a725613239604062b8d4c6eba39a [devtools] Drop old init_test_database backward compat diff -r ea25d87a8537 -r c2e7fd344b90 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()