Contributors mailing list archives

Browse archives


Tests failing - related non dependent modules and bridging module.

by "Richard deMeester" <> - 30/07/2021 17:48:02

Hello, all,

I am facing an issue which I hope someone else in the OCA has encountered and solved.

We have a module that depends on product and changes the behaviour of costing.
We have another module, auto installed, which depends on that module and on sale_stock_margin

So loosely, the tree is

      |                                                    |
 sale_stock_margin                extension_module_basic
      |                                                    |

In "production" everything works fine - as soon as both modules are installed, the extension module which makes them work together is installed and we are happy.

But we are using runbot, and sale_stock_margin tests are failing.

Essentially, I have finally worked out, that when it runs the tests for sale_stock_margin, it does not execute the code from extension_module_sale_stock.  BUT, it does run the code from extension_module_basic when it is setting the costs (unrelated to the sale_stock_margin tests, but related to their values)

The tests work if both modules are "known" and executed, or neither.

Obviously, we don't want to make extension_module_basic dependent on sale_stock_margin - it isn't and can be run independent.  And that is the purpose of the bridging module, to unify the behaviour of the two independent modules.

There is no code problem being highlighted, but we would obviously like the tests to pass.

Any help appreciated.


Richard deMeester

Senior Development Analyst

WilldooIT Pty Ltd


M: +61 403 76 76 76

P: +61 3 9135 1900

A: 10/435 Williamstown Road, Port Melbourne, Vic 3207



Making growth through technology easy



DISCLAIMER | This electronic message together with any attachments is confidential. If you are not the recipient, do not copy, disclose, or use the contents in any way. Please also advise us by e-mail that you have received this message in error and then please destroy this email and any of its attachments. WilldooIT Pty. Ltd. is not responsible for any changes made to this message and/or any attachments after sending by WilldooIT Pty. Ltd. WilldooIT Pty. Ltd. use virus scanning software but exclude all liability for virus or anything similar in this email or attachment.