Contributors mailing list archives

contributors@odoo-community.org

Avatar

Re: Weird issue: database does not run tests

by
Web-veistämö Oy/Avoin.Systems, miku@avoin.systems
- 24/09/2020 11:58:47
One of our developers just had this issue with a single module. The tests would run in a copy of the production database, but not in a fresh and empty database.

I asked him to install the module manually from the UI in the empty database and turns out that a dependency was missing in the manifest file and the module failed to install. This dependency was present in the copy of the production database and that's why the tests worked just fine there.

--

Miku Laitinen, CTO, Partner
WEB-VEISTÄMÖ OY / AVOIN.SYSTEMS

+371 2560 2460

Tutustu meikäläiseen ja muihin veistämöläisiin paremmin!

Facebook | LinkedIn | Instagram | Twitter



On Thu, Sep 24, 2020 at 1:57 PM Graeme Gellatly <gdgellatly@gmail.com> wrote:

If a module is already installed -u works just fine. Im not sure -i even works if already installed hence the suggestion.



On Thu, 24 Sep 2020, 10:42 pm Richard deMeester, <richard.demeester@willdooit.com> wrote:

Oh, and tests only run when installing the module - have you used "-i module --test-entable" from the command line?

Richard deMeester

Senior Development Analyst

WilldooIT Pty Ltd

E: richard.demeester@willdooit.com

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.



From: Daniel Reis <dreis@opensourceintegrators.com>
Sent: Thursday, 24 September 2020 8:01 PM
To: Contributors <contributors@odoo-community.org>
Subject: Weird issue: database does not run tests
 
Hello,

I found this issue, and it is puzzling me, so I wonder if someone out 
there has some idea.

While creating a new module, using a dev database with demo data, at 
some point I added tests.
However, these tests don't get to run. I'm sure their Python files are 
being loaded, but the test runner is not executing them.
It is not like they are failing because of wrong data, They're simply 
not being executed,

After several trial and errors, I got them running after creating a new 
database and running them on this database.

So everything is the same: the code, the conf file, the system 
environment, ...
But test run in database B and not in database A!

Why would that be?
This was using Odoo 12.


Thanks for any insights

Daniel Reis
Open Source Integrators

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference