[FIX] Fix the yml test with option --test-file.
authorKersten Jeremy <jke@openerp.com>
Wed, 19 Mar 2014 10:48:47 +0000 (11:48 +0100)
committerKersten Jeremy <jke@openerp.com>
Wed, 19 Mar 2014 10:48:47 +0000 (11:48 +0100)
commit903270996f6ac6b643e7a79ea675b9542cf7ca4c
treeb5856cf5963ae69d94cc2b432a664d20a9feeb9f
parent1225c8b530415360e95afa44da7cc82457fd1b88
[FIX] Fix the yml test with option --test-file.

1 -
There was a confusing between kind and mode.
Due to the mode 'test', there are many part of code who was not executed.
The right value is kind='test', and arbitrary mode='init' (or 'update')

2 -
The yml test was always roolbacked, without check that command line had '--test-commit'.
It's has been fixed, now we check if param --test-commit is existing, else we roolback the transaction.

Rem for forward: function in trunk=saas-4 has been moved in : openerp/service/server.py - def load_test_file_yml

bzr revid: jke@openerp.com-20140319104847-6r2c70gapocn2wxq
openerp/cli/server.py