diff options
| author | Olivier Dony <odo@openerp.com> | 2010-06-16 17:49:46 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2010-06-16 17:49:46 +0200 |
| commit | 96f01fe1c4c03a688161a3533446c5af8a3db4ea (patch) | |
| tree | cb10dff856b8402518621ed46380a3c5ba38e871 /bin/addons/__init__.py | |
| parent | 6747bdc080d1b960f8c0863fa98de14ecf3e22f3 (diff) | |
[IMP] addons: changed test section to only run in demo mode
bzr revid: odo@openerp.com-20100616154946-aeosrnkn7wvjyhwn
Diffstat (limited to 'bin/addons/__init__.py')
| -rw-r--r-- | bin/addons/__init__.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index 0370fa9a236..2938a566d0a 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -729,8 +729,12 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, **kwargs): load_demo_xml(cr, m, idref, mode) load_demo(cr, m, idref, mode) cr.execute('update ir_module_module set demo=%s where id=%s', (True, mid)) - - load_test(cr, m, idref, mode) + + # 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) package_todo.append(package.name) |
