From f7742add264b5da491968a550aacd4cf043e003f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Soriano?= Date: Fri, 12 Jun 2015 19:26:54 +0100 Subject: [PATCH] [FIX] tests: restore openerp.tests.common.DB for backwards compatibility It was removed at 2df9060d97a201c2f54c6d79af13ffca45f91cef and broke tests in community modules that relied on it. Tests using it should switch to the new get_db_name() method. Closes #7054 --- openerp/tests/common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openerp/tests/common.py b/openerp/tests/common.py index 912ebea5799..3a4700be682 100644 --- a/openerp/tests/common.py +++ b/openerp/tests/common.py @@ -46,6 +46,10 @@ def get_db_name(): return db +# For backwards-compatibility - get_db_name() should be used instead +DB = get_db_name() + + def at_install(flag): """ Sets the at-install state of a test, the flag is a boolean specifying whether the test should (``True``) or should not (``False``) run during