Odoo Help


Difference between python and YAML tests

Denis Karataev
on 7/17/13, 8:34 PM 2,238 views


What is difference between two kinds of tests? If we can include python code to YAML, why it was needed to add python tests like in "lunch" or in "mail" module?


On 11/18/14, 8:16 AM

Some things are still not easy to do in YML, for example testing that a function raises an exception.

Also, the YML testing facility is completly Odoo-centric, whereas the python tests build upon well-known testing practices that most developper teams should be familiar with.

Thanks for your answer. How do you think do we need YML tests at all? In which areas it's better than python tests?

Denis Karataev
on 2/4/15, 4:24 AM

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: 7/17/13, 8:34 PM
Seen: 2238 times
Last updated: 3/16/15, 8:10 AM