Odoo Help


Why my test yaml do not run?

Katherine Zaoral
on 1/21/14, 10:44 AM 2,383 views


I been working with test yaml for openerp module since last six months and everything was going okey. But today I found something that I am not sure what it that happening.

I have a module that only load data into openerp records, and it has not demo. I add a test folder into the module folder, also add a yml file into the test folder. I update the __openerp__.py file and add the key to the descriptor.

"test": [ 'test/file.yml', ],

Then I run the server using -d my_db -u my_module --log-level=test --test-enable options. This should make the test run but It don't. The server log tells me that It loaded the data but did not run the test yaml. It is like the test yaml file does not exist.

I try to force it adding the --test-file=file.yml option to the server options and it works but I don't understand why without this options do not automatically run the test.

Please Help, Best Regards

Katherine Zaoral
On 12/4/14, 11:20 AM

The reason is because the database where you run the test need to have data demo, if the database was created without data demo then the tests will not run. If the database was created with data demo then the test will run


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 1/21/14, 10:44 AM
Seen: 2383 times
Last updated: 3/16/15, 8:10 AM