Odoo Help


This community 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.


Difference between python and YAML tests

Denis Karataev
on 7/17/13, 8:34 PM 1,466 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 7/17/13, 8:34 PM
Seen: 1466 times
Last updated: 3/16/15, 8:10 AM