Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
6819 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
helmik. 24
4299
0
huhtik. 16
5050
0
maalisk. 25
1513
4
huhtik. 24
174374
0
jouluk. 23
2279