Skip to Content
Menú
This question has been flagged
1 Respondre
6812 Vistes

Hello.

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?

Thanks.

Avatar
Descartar
Best Answer

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.

Avatar
Descartar
Autor

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

Related Posts Respostes Vistes Activitat
1
de febr. 24
4288
0
d’abr. 16
5039
0
de març 25
1496
4
d’abr. 24
174349
0
de des. 23
2258