diff options
| author | Simon Lejeune <sle@openerp.com> | 2019-04-04 13:16:02 +0000 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2019-04-15 07:32:32 +0000 |
| commit | c5ff803fcce2daf44634228b1fe6afeeced3311a (patch) | |
| tree | ce77c9b54fb815194490dddb22cb7d58a0080537 /addons/web/static/src/js/views/basic | |
| parent | 12da02d161e02d7b0d5508f96e401a03ec478b9c (diff) | |
[REF] stock: speedup tests
before on runbot:
odoo.addons.stock.tests.test_move tested in 31.79s, 63166 queries
odoo.addons.stock.tests.test_move2 tested in 33.69s, 68046 queries
odoo.addons.stock.tests.test_quant tested in 8.48s, 15351 queries
odoo.addons.stock.tests.test_stock_flow tested in 16.99s, 31506 queries
amounting to 90 seconds on a build page
after om runbot:
odoo.addons.stock.tests.test_move tested in 12.41s, 24197 queries
odoo.addons.stock.tests.test_move2 tested in 13.55s, 24254 queries
odoo.addons.stock.tests.test_stock_flow tested in 9.74s, 15795 queries
amounting to 37 seconds on a build page
Use savepoint case instead of transaction case.
We took the opportunity to rename the master data more appropriately,
which results now in a bigger diff in TestMove and TestQuant. In
TestQuant, the master data creation had to be moved in the setUpClass
too.
We removed test_shipment as test_backorder_1-4 in tet_move_2 covers the
same parts of the code.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
