[MERGE] trunk

bzr revid: abo@openerp.com-20130129101632-r2wtuahpxje5cpbi
This commit is contained in:
Antonin Bourguignon 2013-01-29 11:16:32 +01:00
commit 32b506f1c2
2 changed files with 20 additions and 5 deletions

View File

@ -7,14 +7,14 @@ msgstr ""
"Project-Id-Version: OpenERP Server 5.0.4\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2012-12-21 17:04+0000\n"
"PO-Revision-Date: 2012-12-27 08:02+0000\n"
"PO-Revision-Date: 2013-01-24 13:14+0000\n"
"Last-Translator: Chertykov Denis <chertykov@gmail.com>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2013-01-19 05:18+0000\n"
"X-Generator: Launchpad (build 16430)\n"
"X-Launchpad-Export-Date: 2013-01-25 05:24+0000\n"
"X-Generator: Launchpad (build 16445)\n"
#. module: base
#: model:ir.module.module,description:base.module_account_check_writing
@ -12228,7 +12228,7 @@ msgstr ""
#: code:addons/base/ir/ir_mail_server.py:469
#, python-format
msgid "Mail delivery failed"
msgstr "Доставка почты не удалось"
msgstr "Доставка почты не удалась"
#. module: base
#: view:ir.actions.act_window:0
@ -13121,7 +13121,7 @@ msgstr "Содержимое"
#: code:addons/base/ir/ir_mail_server.py:219
#, python-format
msgid "Connection test succeeded!"
msgstr "Проверка соединения удалось!"
msgstr "Проверка соединения удалась!"
#. module: base
#: model:ir.module.module,description:base.module_project_gtd

View File

@ -70,8 +70,19 @@ def run(args):
else:
module_names = ['base']
if args.coverage:
import coverage
# Without the `include` kwarg, coverage generates 'memory:0xXXXXX'
# filenames (which do not exist) and cause it to crash. No idea why.
cov = coverage.coverage(branch=True, include='*.py')
cov.start()
openerp.netsvc.init_logger()
registry = install_openerp(args.database, not args.no_create, module_names, not config['without_demo'])
if args.coverage:
cov.stop()
cov.html_report(directory='coverage')
# If we wanted the report on stdout:
# cov.report()
# The `_assertion_report` attribute was added on the registry during the
# OpenERP 7.0 development.
@ -99,5 +110,9 @@ def add_parser(subparsers):
' (use the `run-tests` command to choose specific'
' tests to run against an existing database).'
' Demo data are installed.')
parser.add_argument('--coverage', action='store_true',
help='report code coverage (particularly useful with --tests).'
' The report is generated in a coverage directory and you can'
' then point your browser to coverage/index.html.')
parser.set_defaults(run=run)