From 04c3beb9cbd8116690a0a0912d725cd41c80e3ac Mon Sep 17 00:00:00 2001 From: Julien Thewys Date: Wed, 17 Nov 2010 13:27:37 +0100 Subject: [PATCH] [REF] update comments for test loading (previous commit) bzr revid: jth@openerp.com-20101117122737-hqcrj7m28pbsbuup --- bin/addons/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index 572a9e0ba86..e4fabab416e 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -733,12 +733,9 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, **kwargs): load_demo(cr, m, idref, mode) cr.execute('update ir_module_module set demo=%s where id=%s', (True, mid)) - # launch tests only in demo mode, as most tests will depend - # on demo data. Other tests can be added into the regular - # 'data' section, but should probably not alter the data, - # as there is no rollback. load_test(cr, m, idref, mode) elif tools.config.options['test_force']: + # forces test loading without demo data (useful when updating modules) load_test(cr, m, idref, mode) package_todo.append(package.name)