Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Weird issue: database does not run tests

by
MoaHub, Graeme Gellatly
- 24/09/2020 12:29:52
You are probably executing subsequent runs with i instead of u.

On Thu, 24 Sep 2020, 10:21 pm David Beal, <david.beal@akretion.com> wrote:
Hi Daniel,

Have you also tried with odoo-pytest, to compare execution or not ?

Regards

David BEAL - akretion.com
Consultant
Odoo Intégration / Développement


Le jeu. 24 sept. 2020 à 12:01, Daniel Reis <dreis@opensourceintegrators.com> a écrit :
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

Reference